home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!lll-winken!sol.ctr.columbia.edu!usc!wupost!darwin.sura.net!haven.umd.edu!news.umbc.edu!math9.math.umbc.edu!rouben
- From: rouben@math9.math.umbc.edu (Rouben Rostamian)
- Newsgroups: comp.unix.questions
- Subject: Re: A question on ls
- Message-ID: <1992Aug29.233534.27967@umbc3.umbc.edu>
- Date: 29 Aug 92 23:35:34 GMT
- References: <6786@tekig7.PEN.TEK.COM>
- Sender: newspost@umbc3.umbc.edu (News posting account)
- Distribution: na
- Organization: University of Maryland Baltimore Campus
- Lines: 14
-
- In article <6786@tekig7.PEN.TEK.COM> naren@tekig5.pen.tek.com (Naren Bala) writes:
- >If I type
- >% ls *.Z
- >All files with .Z extension are displayed.
- >
- >What command would I type to display all files that do not have a .Z
- >extension ?
-
- The wildcards are expanded by the shell, so the answer is: it depends on
- the shell you are using. In tcsh, you type:
- % ls ^*.Z
- In sh and csh you are out of luck. In other shells, I don't know.
-
- --
-