home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / opendesk / 874 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.5 KB  |  42 lines

  1. Newsgroups: biz.sco.opendesktop
  2. Path: sparky!uunet!nwnexus!Celestial.COM!bill
  3. From: bill@Celestial.COM (Bill Campbell)
  4. Subject: Re: grep bug??
  5. Organization: Celestial Software, Mercer Island, WA
  6. Date: Tue, 22 Dec 1992 16:22:28 GMT
  7. Message-ID: <1992Dec22.162228.11109@Celestial.COM>
  8. References: <m0n3nHh-0001dmC@netex.netx.com>
  9. Lines: 31
  10.  
  11. In <m0n3nHh-0001dmC@netex.netx.com> netxcom!jwc%netex.netx.com@uunet.UU.NET (JC ) writes:
  12.  
  13. :I ran across a problem with SCO ODT/Unix 1.1 grep. It seems to be confused
  14. :when you specify the -e option. For example, 
  15.  
  16. :  cat file |grep -y -e "string"
  17.  
  18. :results in 
  19.  
  20. :  Usage: grep -bchilnsvy [-e expr] [-f expr_file] pattern file . . .
  21.  
  22. :the -y option makes no difference. The following forms DO work:
  23.  
  24. :   cat file |grep -y "string"`   >>> piping, no -e option
  25. :   grep -y -e "string" file`     >>> -e option, no piping
  26.  
  27. I tried both variants on my UNIX 3.2v4 and Xenix 2.3.4 systems
  28. and they worked much to my surprise since I thought the -y option
  29. had been replaced with -i (IMHO one of the dumber things to
  30. happen to UNIX since neither makes much sense and changing it
  31. breaks 20 years worth of scripts :-).
  32.  
  33. I replaced the SCO grep and egrep with the gnu versions several
  34. months ago when I ran into a bug with egrep while compiling perl.
  35.  
  36. Bill
  37. -- 
  38. INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
  39. UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
  40.              uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
  41. SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
  42.