in reply to Perl in one line

cat file | grep -e str1 -e str2

You've earned merlyn's useless use of cat award.

grep -e '(str1|str2)' file

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}