I\'ve got a script that calls grep to process a text file. Currently I am doing something like this.
$ grep \'SomeRegEx\' myfile.txt > myfile.txt.temp $ m
Take a look at my slides "Field Guide To the Perl Command-Line Options" at http://petdance.com/perl/command-line-options.pdf for more ideas on what you can do in place with Perl.