perl -le 'print $_ for grep{/pattern/}@arr' [download]
-enlil
In reply to Re: One-liners: Conditionals in Loops by Enlil in thread One-liners: Conditionals in Loops by David Caughell