home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5213 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  938 b 

  1. Path: sparky!uunet!spool.mu.edu!olivea!gossip.pyramid.com!pyramid!infmx!hartman
  2. From: hartman@informix.com (Robert Hartman)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: find
  5. Keywords: find grep
  6. Message-ID: <1992Dec31.184929.13035@informix.com>
  7. Date: 31 Dec 92 18:49:29 GMT
  8. References: <1992Dec30.154242.26079@netcom.com>
  9. Sender: news@informix.com (Usenet News)
  10. Organization: Informix Software, Inc.
  11. Lines: 17
  12.  
  13. In article <1992Dec30.154242.26079@netcom.com> kasajian@netcom.com (Kenneth Kasajian) writes:
  14. >What is the unix command for DOS' 'find'.  I would like to
  15. >display directories only with ls.  so I do an ls -F -1 and
  16. >then display only those lines with a / .
  17. >
  18. >Also.  How do I do I get grep to include in its file list all
  19. >files in the current directory and files in all sub-directories?
  20. >
  21. >kenny
  22.  
  23. There are two ways of I can think of offhand to get a list of all
  24. decendent directories:
  25.  
  26.     find . -type d -print
  27.     ls -RF1 | grep :
  28.  
  29. -r
  30.