home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / misc / 27785 < prev    next >
Encoding:
Text File  |  1992-08-19  |  2.0 KB  |  54 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ubc-cs!unixg.ubc.ca!ochealth
  3. From: ochealth@unixg.ubc.ca (ochealth)
  4. Subject: Re: Does Os/2 Have The Equai
  5. Message-ID: <1992Aug20.040838.8004@unixg.ubc.ca>
  6. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  7. Nntp-Posting-Host: unixg.ubc.ca
  8. Organization: University of British Columbia, Vancouver, B.C., Canada
  9. References: <714223952.6@wyrm.rbbs-net.ORG>
  10. Date: Thu, 20 Aug 1992 04:08:38 GMT
  11. Lines: 41
  12.  
  13. In article <714223952.6@wyrm.rbbs-net.ORG> Daniel.Karellen@f501.n914.z8.rbbs-net.ORG (Daniel Karellen) writes:
  14. >BM>Everyone / Anyone:
  15. >
  16. >BM>Does OS/2 have the equaivalent of the UNIX usage of ``?  For example, the
  17. >BM>command: grep "---" `find . -name ~*~ -print` is very useful.  It finds
  18. >BM>all files/directories and passes the to grep as its parameters (filesnames).
  19. >
  20. >BM>Thanks in advance.
  21. >
  22. >BM>Bert.
  23. >
  24. >Download GREP for OS/2 from the fernwood bbs (203) 483-0348.  That's the 9600
  25. >baud line, there's also a 14,400 baud line.
  26.  
  27. No no no. That's not what he meant. I think he already has grep etc.
  28.  
  29. grep "---" `find  foobar` is what he was asking.
  30.  
  31. In a UNIX C shell, the backquotes run that program, and leave the results
  32. in the command line (in this case).
  33.  
  34. SO the `find ..` would expand to ./file1 ./file2 ./file2 etc.
  35. Then those files would become the arguments to grep.
  36.  
  37. Confusing, but then this is UNIX.
  38.  
  39. BTW I *would* like to know if this is possible under OS/2. Maybe some bizarre
  40. 4OS/2 command? Anyway, it's a function of the shell, not the OS. Maybe when
  41. bash gets ported...;-)
  42.  
  43. >___
  44. > * MR/2 1.2x NR * Let's Go Mets!
  45. >
  46. > * Origin: SeaHunt BBS, San Francisco (415-431-0227) (8:914/501)
  47.  
  48.  
  49. -- 
  50. ______________________________________________________________________________
  51. jpm: ochealth@unixg.ubc.ca         
  52.                             Happily using OS/2 2.0 because MS Windows isNT ___
  53.                                                       Insert VapourFeature ^^^
  54.