Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
To: jc@eddie.mit.edu
Subject: Re: OSF1 grep doesn't do REs?
Date: 1998/02/18	[thread overview]
Message-ID: <34EB2C28.C7ED8CBB@iisc.com> (raw)
In-Reply-To: 34EAFC6A.794B@eddie.mit.edu


John Chambers (from root account) wrote:
> 
> 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.
> 
> In checking with "man grep", I find that the RE stuff seems to have
> been radically expanded, with things called BREs and EREs, and no
> apparent clues as to how to tell the little beasties to enable one
> or the other.  Is there some magical incantation that's needed to
> make it work?
> 
> 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.
> 
> ===> which grep
> /sbin/grep

grep \[Ff\]ork *.c


And by the way...  Do you really want /sbin to be in your PATH before
/usr/bin?

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



  reply	other threads:[~1998-02-18  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 [this message]
1998-02-20  5:00   ` Mark Taylor
1998-02-19  5:00 ` Simon Taylor
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