Hmm... looking at some of the lines of 'template.txt'. You are attempting to mod some sort of Star Trek video game I presume? If so you may just want to tell us which game and what you are trying to do exactly. If any Monk here happens to be familiar with or even have the game they can probably go look at the files themselves and see exactly what you are talking about.

Beyond that, I know you probably hate the idea of putting in the time to learn the rudiments of a computer language, but Perl isn't so difficult to pick up, and even something like this very short tutorial can teach you everything you need and more to do what you are asking. The far greater upside of sticking it out and learning Perl yourself would be that if you are doing this sort of thing a lot, you will be amazed at how much more adept and proficient you can be at it with the Swiss Army Chainsaw that is Perl in your toolbox. :-)

Just another Perl hooker - will code for food

In reply to Re: re-ordering lines of text in a file? by perldigious
in thread re-ordering lines of text in a file? by moddingforfun

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.