From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e0f812932bdb4520 X-Google-Attributes: gidfee84,public From: "Simon Taylor" Subject: Re: OSF1 grep doesn't do REs? Date: 1998/02/19 Message-ID: <01bd3cd8$80aa7860$026464c0@simon.iaccess.com.au>#1/1 X-Deja-AN: 326427437 References: <34EAFC6A.794B@eddie.mit.edu> Organization: xxxx Newsgroups: comp.unix.osf.osf1 John Chambers (from root account) 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