"Siegfried Heintze" <[EMAIL PROTECTED]> writes:

> My man pages and info pages are not working well and I cannot figure out how
> to make grep search for a certain pattern. I even tried egrep and fgrep. So
> how do I reinvent grep with perl? Here is my attempt:
>
>  
>
> perl -n -e 'print "$. $_" if /^ *END *$/' *.f

grep -n '^ *END *$' *.f


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to