home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / opendesk / 873 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.1 KB

  1. Path: sparky!uunet!olivea!xenitec!news
  2. From: netxcom!jwc%netex.netx.com@uunet.UU.NET (JC )
  3. Newsgroups: biz.sco.opendesktop
  4. Subject: grep bug??
  5. Message-ID: <m0n3nHh-0001dmC@netex.netx.com>
  6. Date: 21 Dec 92 13:35:00 GMT
  7. Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
  8. Organization: NetExpress
  9. Lines: 22
  10. Submit-To: scoodt@xenitec.on.ca
  11. Phone: 703-749-2369
  12. Resent-By: mmdf@xenitec.on.ca
  13. Precedence: bulk
  14.  
  15. I ran across a problem with SCO ODT/Unix 1.1 grep. It seems to be confused
  16. when you specify the -e option. For example, 
  17.  
  18.   cat file |grep -y -e "string"
  19.  
  20. results in 
  21.  
  22.   Usage: grep -bchilnsvy [-e expr] [-f expr_file] pattern file . . .
  23.  
  24. the -y option makes no difference. The following forms DO work:
  25.  
  26.    cat file |grep -y "string"`   >>> piping, no -e option
  27.    grep -y -e "string" file`     >>> -e option, no piping
  28.  
  29. Shell doesn't matter, it happens in both sh and csh. Has anyone else seen
  30. this?
  31.  
  32. -- 
  33. Jeffrey W Comer * jwc@netx.com * 703-749-2369 (v) * 703-749-2375 (fax)
  34.   "Tact is the ability to tell a man he has an open 
  35.   mind when he really has a hole in his head."
  36. -Anon
  37.