home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!xenitec!news
- From: netxcom!jwc%netex.netx.com@uunet.UU.NET (JC )
- Newsgroups: biz.sco.opendesktop
- Subject: grep bug??
- Message-ID: <m0n3nHh-0001dmC@netex.netx.com>
- Date: 21 Dec 92 13:35:00 GMT
- Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
- Organization: NetExpress
- Lines: 22
- Submit-To: scoodt@xenitec.on.ca
- Phone: 703-749-2369
- Resent-By: mmdf@xenitec.on.ca
- Precedence: bulk
-
- I ran across a problem with SCO ODT/Unix 1.1 grep. It seems to be confused
- when you specify the -e option. For example,
-
- cat file |grep -y -e "string"
-
- results in
-
- Usage: grep -bchilnsvy [-e expr] [-f expr_file] pattern file . . .
-
- the -y option makes no difference. The following forms DO work:
-
- cat file |grep -y "string"` >>> piping, no -e option
- grep -y -e "string" file` >>> -e option, no piping
-
- Shell doesn't matter, it happens in both sh and csh. Has anyone else seen
- this?
-
- --
- Jeffrey W Comer * jwc@netx.com * 703-749-2369 (v) * 703-749-2375 (fax)
- "Tact is the ability to tell a man he has an open
- mind when he really has a hole in his head."
- -Anon
-