home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5236 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!news
  3. From: beric@sunvcr.canada.sun.com (Beric Maass - Sun Vancouver SPS)
  4. Subject: Re: need a bit of help in
  5. Message-ID: <1993Jan4.181902.20122@newscan.canada.sun.com>
  6. Sender: news@newscan.canada.sun.com
  7. Nntp-Posting-Host: gene.canada.sun.com
  8. Reply-To: beric@sunvcr.canada.sun.com
  9. Organization: Sun Microsystems Computer Corp.
  10. References: <1993Jan1.195022.23031@mnemosyne.cs.du.edu>
  11. Date: Mon, 4 Jan 1993 18:19:02 GMT
  12. Lines: 21
  13.  
  14. In article 23031@mnemosyne.cs.du.edu, rduta@nyx.cs.du.edu (Radu) writes:
  15. >
  16. >2) I was wandering what is the easiest way to do a recursive grep, where
  17. >   it searches all the files in all dirs.  I was thinking something along
  18. >   the lines of "grep -R string *" but the "-R" flag is not an option.
  19. >
  20. >any ideas?
  21.  
  22. Yup -
  23.  
  24. find . -type f -exec grep -i string_to_search /dev/null {} \;
  25.  
  26.   --Beric
  27. =======================
  28. I'm not sure who's opinions I've expressed but rest assured,
  29. odds are, they are not those of my employer's
  30.  
  31.  
  32.  
  33.  
  34.  
  35.