(C) 2003, Tim Maher 1-18 www.TeachMePerl.com Perl as (a better) Grep Command How it Works perl -wln -e '/RE/ and print;' F -wln: warnings, auto- carriage returns, auto- input processing -n: treat F as name of input file -e: execute program in following argument /RE/: Match regex against current line and: print is conditional on match print: print current line (that contains match) F: file to be examined for matches