grep, etc
Bill Vermillion
fp at wjv.com
Tue Aug 17 17:49:49 PDT 2004
On Sat, Aug 14 01:18 , Men gasped, women fainted, and small children
were reduced to tears as Fairlight confessed to all:"
> You'll never BELIEVE what Jay Ashworth said here...:
> > Actually, newer greps (GNUer greps?) do permit you to specify a window
> > of context around the matched line; in particular, GNU grep (found on
> > my RedHat 7.3 Linux, and likely most others, supports the -A and -B
> > options for this.
> Interesting. I never bothered, really. I didn't learn on GNU greps
> originally, and had my methodology set wayyy back in '89.
> I'll probably keep this in mind though when I next need to do it. The
> problem is that unless you have a guaranteed GNU grep, it's possibly
> (probably?) not portable scripting.
After having no power for 95 hours, and expecting it to be out for
at least 3 more days, things are running here again.
You mentioned you didn't learn on GNU greps originally.
You might check into pcregrep. It is defined as 'a grep with
Perl-compatible regular expressions'.
Bill
--
Bill Vermillion - bv @ wjv . com
More information about the Filepro-list
mailing list