home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10537 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.2 KB

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sm86+
  2. From: sm86+@andrew.cmu.edu (Stefan Monnier)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: A question on ls
  5. Message-ID: <Yec2E4i00Vol44IFh7@andrew.cmu.edu>
  6. Date: 29 Aug 92 17:27:32 GMT
  7. Article-I.D.: andrew.Yec2E4i00Vol44IFh7
  8. References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu>
  9.     <1992Aug29.235425.26762@mcc.com>
  10. Distribution: na
  11. Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
  12. Lines: 21
  13. In-Reply-To: <1992Aug29.235425.26762@mcc.com>
  14.  
  15. Some more details (that I hadn't seen):
  16.  
  17. the grep version is a bit erroneous:
  18. the point in grep means 'any char' and you must precise that the .Z 
  19. has to be placed at the end of the name:
  20.  
  21. ls | grep -v '\.Z$'
  22.  
  23. But be careful to use a plain ls and not an alias. It could introduce some
  24. problems (multicolumns, added character at the end, ...)
  25.  
  26. And with the ls-only version, you will have some problems if the considered 
  27. directory has subdirectories!
  28.  
  29.  
  30.     Stefan Monnier
  31.  
  32.  
  33. -----------------------------------------------------
  34. -- On the average, people seem to be acting normal --
  35. -----------------------------------------------------
  36.