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
[download]
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.
Comment on
Re: Perl in one line
Download
Code
In Section
Seekers of Perl Wisdom