(C) 2003, Tim Maher 1-23 www.TeachMePerl.com Perl as (a better) Sed Command Stream Editing Applications: One-liner for typing directly to shell Benefit: access to Perl's enhanced RE metacharacters perl -wlp -e 's/old/new/g;' [ files ] $ cat memo It was problematic; do you have a problem? $ sed 's/problem/issue/g' memo It was issueatic; do you have a issue? $ perl -wlpe 's/\ba problem\b/an issue/g;' memo It was problematic; do you have an issue? $