The -p argument doesn't take an argument and prints any line read. What you want is:
perl -n -e "print if /regex/" *.*
Hope this helps, -gjb-
In reply to Re: Perl as grep
by gjb
in thread Perl as grep
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |