home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14991 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!news.edu.tw!cc.ntnu.edu.tw!news!news.csie.nctu.edu.tw!cp78065
  3. From: cp78065@csie.nctu.edu.tw (Ji-Tzay Yang)
  4. Subject: Re: recursive grep'ing
  5. Message-ID: <1992Dec28.043508.3237@csie.nctu.edu.tw>
  6. Sender: usenet@csie.nctu.edu.tw
  7. Organization: Computer Science & Information Engin., Chiao-Tung U, Taiwan, ROC
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. References: <Bzvwwo.Aq8@NCoast.ORG>
  10. Date: Mon, 28 Dec 1992 04:35:08 GMT
  11. Lines: 27
  12.  
  13. Brad Banko (btb@NCoast.ORG) wrote:
  14. :     A small question, is it possible to recursively grep files? This could
  15. : be very useful, especially since many users on my unix box have files that con-
  16. : tain illegalities. Any help thru e-mail would be greatly appreciated.
  17. : -- 
  18. : Brad Banko
  19. : Internet : btb@ncoast.org
  20.  
  21.     Try the following line:
  22.  
  23.         find . -name "*" -print | xargs grep "YOUR PATTERN"
  24.  
  25. --
  26.                                          With regard,
  27.  
  28.  ============================================================================
  29.  Ji-Tzay Yang (╖¿ ░≥ ╕ⁿ)              |  E-mail : cp78065@csie.nctu.edu.tw
  30.  Dept. of Comp. Science & Info. Eng.  |           u7817065@cc.nctu.edu.tw 
  31.  National Chiao-Tung University       |  Tel    : 886-35-712121 ext 6430 
  32.  Hsin-Chu, Taiwan ROC                 |  Fax    : 886-35-721486 
  33.  ============================================================================
  34.  
  35.