home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gumby!wupost!cs.utexas.edu!milano!bohrer
- From: bohrer@mcc.com (Bill Bohrer)
- Subject: Re: A question on ls
- Message-ID: <1992Aug29.235425.26762@mcc.com>
- Organization: MCC, Austin, TX
- References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu>
- Distribution: na
- Date: Sat, 29 Aug 1992 23:54:25 GMT
- Lines: 39
-
- In article <1992Aug29.233534.27967@umbc3.umbc.edu> rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
- >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.
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
- Not true, this should work in ALL shells:
-
- ls | grep -v '.Z'
-
-
- Bill Bohrer
- bohrer@mcc.com
-
- Microelectronics and Computer Technology Corporation
- (MCC ... the "T" didn't conform to the industry-wide
- three-initial-standard..)
- 3500 West Balcones Center Drive
- Austin, TX 78759-6509
- (512)343-0978
-
-
-
-
-
- --
- --
- SUB-STANDARD DISCLAIMER: I'm from NEW YORK fr chrissake! It's an
- Election YEar, gimme a break. If this post had been meant
- as a *FLAME*, it would have started of with the customary,
-