grep -e str1 -e str2 file [download]
In reply to Re: Perl in one line by KurtSchwind in thread Perl in one line by Noame