home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.unix.questions
- Subject: Re: A question on ls
- Message-ID: <14408@auspex-gw.auspex.com>
- Date: 1 Sep 92 18:43:18 GMT
- References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu> <44@ctmnix.UUCP>
- Sender: news@auspex-gw.auspex.com
- Distribution: na
- Organization: Auspex Systems, Santa Clara
- Lines: 16
- Nntp-Posting-Host: bootme.auspex.com
-
- >>>>What command would I type to display all files that do not have a .Z
- >>>>extension ?
- >
- >How about:
- >find ./ -print | egrep -v "Z"
-
- Yup, the first sure exclude files with a ".Z" extension.
-
- In fact, it'll exclude files with a "Z" anywhere in the name, even if
- they *don't* have a ".Z" extension.
-
- >find ./ -print | egrep -v "z"
-
- Doesn't exclude files with a ".Z" extension, unless they also have a
- lower-case "z" in the name (or unless the "egrep" on your system is
- horribly broken).
-