in reply to Perl in one line

Assuming this isn't for some perl class and is a genuine perl/unix question:
grep -e str1 -e str2 file
is one line. You don't need the cat.
--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.