home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15025 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!uwm.edu!ogicse!hsdndev!husc-news.harvard.edu!husc-news!huang1
  2. From: huang1@husc11.harvard.edu (Howard Huang)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: recursive grep'ing
  5. Message-ID: <HUANG1.92Dec29151332@husc11.harvard.edu>
  6. Date: 29 Dec 92 20:13:32 GMT
  7. Article-I.D.: husc11.HUANG1.92Dec29151332
  8. References: <Bzvwwo.Aq8@NCoast.ORG> <1992Dec28.043508.3237@csie.nctu.edu.tw>
  9. Organization: Harvard Arts and Sciences Computer Services, Cambridge, MA
  10. Lines: 20
  11. Nntp-Posting-Host: husc11.harvard.edu
  12. In-reply-to: cp78065@csie.nctu.edu.tw's message of Mon, 28 Dec 1992 04:35:08 GMT
  13.  
  14. cp78065@csie.nctu.edu.tw (Ji-Tzay Yang) writes:
  15.  
  16.        find . -name "*" -print | xargs grep "YOUR PATTERN"
  17.  
  18. Find will allow a shell-type expression to be specified as the name.
  19. You can do
  20.  
  21.     find . -name "*.tex" -print
  22.  
  23. for example.
  24.  
  25. Good luck...
  26.  
  27.  
  28. ------------------------------------------------------------------------------
  29. Howard C. Huang      *      The MITRE Corporation      *      hhuang@mitre.org
  30.  
  31.               There is warmth within one good word to last three
  32.             winters; but a bad word wounds like six months' frost.
  33. ------------------------------------------------------------------------------
  34.