Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Simon Taylor" <xxx@yyy.zzz.com>
Subject: Re: OSF1 grep doesn't do REs?
Date: 1998/02/19	[thread overview]
Message-ID: <01bd3cd8$80aa7860$026464c0@simon.iaccess.com.au> (raw)
In-Reply-To: 34EAFC6A.794B@eddie.mit.edu


John Chambers (from root account) <jc@eddie.mit.edu> wrote in article
<34EAFC6A.794B@eddie.mit.edu>...
> On this Digital UNIX V4.0B (Rev. 564) system, grep and egrep both
> seem to absolutely refuse to do regular expressions, and I was sorta
> wondering if anyone knew some trick to make them behave normally.
[snip] 
> Here's proof of the problem, in a directory with lots of *.c files.
> As you can see, there are several examples of 'fork' and 'Fork' in
> the files, but '[Ff]ork' doesn't match anything. Using egrep gives
> exactly the same output.
[snip]

You don't need no feelthy single quotes, try:

    grep "[Ff]ork" *.c

(Tested on the same revision of DEC Unix that you have).

Regards,

Simon Taylor



  parent reply	other threads:[~1998-02-19  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-18  5:00 OSF1 grep doesn't do REs? John Chambers (from root account)
1998-02-18  5:00 ` Charles M Richmond
1998-02-20  5:00   ` Mark Taylor
1998-02-19  5:00 ` Simon Taylor [this message]
1998-02-22  5:00 ` Bob Harris
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox