You can do this with pretty much any scripting / programming language (if it has input/output capabilities and is turing-complete). And Perl may be the most comfortable one for this.
The code to do something like you said could look like
perl -pe '/^REMARK/ and print "the line you want to add\n"' < input_file > output_fileIn reply to Re: Newbie: uses/limits of perl in editing files
by Sixtease
in thread Newbie: uses/limits of perl in editing files
by wherethewild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |