home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sm86+
- From: sm86+@andrew.cmu.edu (Stefan Monnier)
- Newsgroups: comp.unix.questions
- Subject: Re: A question on ls
- Message-ID: <Yec2E4i00Vol44IFh7@andrew.cmu.edu>
- Date: 29 Aug 92 17:27:32 GMT
- Article-I.D.: andrew.Yec2E4i00Vol44IFh7
- References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu>
- <1992Aug29.235425.26762@mcc.com>
- Distribution: na
- Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
- Lines: 21
- In-Reply-To: <1992Aug29.235425.26762@mcc.com>
-
- Some more details (that I hadn't seen):
-
- the grep version is a bit erroneous:
- the point in grep means 'any char' and you must precise that the .Z
- has to be placed at the end of the name:
-
- ls | grep -v '\.Z$'
-
- But be careful to use a plain ls and not an alias. It could introduce some
- problems (multicolumns, added character at the end, ...)
-
- And with the ls-only version, you will have some problems if the considered
- directory has subdirectories!
-
-
- Stefan Monnier
-
-
- -----------------------------------------------------
- -- On the average, people seem to be acting normal --
- -----------------------------------------------------
-