in reply to Grep'ping on Unix without perl-compatible gnu grep - can you do it better?
is that what you want? Or using the regex for the above postperl -ne 'print if !/^#/ and /foo/' /tmp/foo.txt
perl -ne 'print if /^[^#]*foo/' /tmp/foo.txt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Grep'ping on Unix without perl-compatible gnu grep - can you do it better?
by Tommy (Chaplain) on Feb 01, 2013 at 02:43 UTC |
In Section
Seekers of Perl Wisdom