home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!olivea!gossip.pyramid.com!pyramid!infmx!hartman
- From: hartman@informix.com (Robert Hartman)
- Newsgroups: comp.unix.shell
- Subject: Re: find
- Keywords: find grep
- Message-ID: <1992Dec31.184929.13035@informix.com>
- Date: 31 Dec 92 18:49:29 GMT
- References: <1992Dec30.154242.26079@netcom.com>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 17
-
- In article <1992Dec30.154242.26079@netcom.com> kasajian@netcom.com (Kenneth Kasajian) writes:
- >What is the unix command for DOS' 'find'. I would like to
- >display directories only with ls. so I do an ls -F -1 and
- >then display only those lines with a / .
- >
- >Also. How do I do I get grep to include in its file list all
- >files in the current directory and files in all sub-directories?
- >
- >kenny
-
- There are two ways of I can think of offhand to get a list of all
- decendent directories:
-
- find . -type d -print
- ls -RF1 | grep :
-
- -r
-