in reply to Remove '>' from email

Perl does allow you to run regex 'in place'. The below example should work.
perl -i -ape 's/^>//g' file.txt
--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Replies are listed 'Best First'.
Re^2: Remove '>' from email
by oko1 (Deacon) on Mar 05, 2008 at 15:03 UTC
    perl -i -ape 's/^>//g' file.txt
    

    The '-a' is unnecessary, since there's no need to auto-split anything. Replacing it with a '-w', though, might be of benefit since mistypes happen. :)