home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
- From: navarra@casbah.acns.nwu.edu (John Navarra)
- Subject: Re: A question on ls
- Message-ID: <1992Aug31.053240.8200@news.acns.nwu.edu>
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Organization: Northwestern University, Evanston Illinois.
- References: <1992Aug29.233534.27967@umbc3.umbc.edu> <1992Aug29.235425.26762@mcc.com> <Yec2E4i00Vol44IFh7@andrew.cmu.edu>
- Distribution: na
- Date: Mon, 31 Aug 1992 05:32:40 GMT
- Lines: 20
-
- In article <Yec2E4i00Vol44IFh7@andrew.cmu.edu> sm86+@andrew.cmu.edu (Stefan Monnier) writes:
- >
- >ls | grep -v '\.Z$'
- >
- >And with the ls-only version, you will have some problems if the considered
- >directory has subdirectories!
- >
- And, if you are not worried about subdirectories, you can try
-
- $ find . -type f -a \! -name '*.Z' -print
-
- which will be faster (but will list all non-.Z files in subdir below '.')
-
- -tms
-
- --
- You can get further with a kind word | You can get further with a kind word
- and a gun than a kind word alone. | and a phaser than a kind word and a gun.
- --al capone | -- John Navarra
- =======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
-