home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25383 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.2 KB

  1. Path: sparky!uunet!mcsun!goya!eonwe!jjsf
  2. From: jjsf@gmv.es (Julio Sanchez)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: TextSearch under Linux
  5. Message-ID: <2511@eonwe.gmv.es>
  6. Date: 25 Jan 93 10:14:50 GMT
  7. References: <7-PCNews-124beta@alpha.saar.de> <1993Jan24.223011.5389@serval.net.wsu.edu>
  8. Organization: Grupo de Mecanica del Vuelo, S.A. (GMV), Madrid, Spain
  9. Lines: 26
  10.  
  11. In article <1993Jan24.223011.5389@serval.net.wsu.edu> hlu@eecs.wsu.edu (H.J. Lu) writes:
  12. >
  13. >Please get a good Unix book. To find "foobar", a very simple one:
  14. >
  15. >find . -exec grep foobar {} \;
  16. >
  17.  
  18. find . -exec grep foobar {} /dev/null \;
  19.  
  20. Otherwise, the string is found but you don't know where. Either solution
  21. is good, but they meet different requirements.
  22.  
  23. The solution given by someone (sorry, lost the name):
  24.  
  25. grep foobar `find . -type f -print` (or something, I quote from memory)
  26.  
  27. is very good (less processes started) but may choke on system limits if
  28. the file list is very long.
  29.  
  30.  
  31. Julio
  32. -- 
  33. Julio Sanchez, GMV SA, Isaac Newton 11, PTM Tres Cantos, E-28760 Madrid, Spain
  34. Ph. +34 1 807 21 85 | jsanchez@gmv.es                 | Traveller, there is no
  35. Fax +34 1 807 21 99 | jsanchez%gmv.es@Spain.EU.net    | path; paths are made by
  36. Telex  48487 GMEV E | Julio_Sanchez_GMV@EuroKom.ie    | walking (A. Machado)
  37.