home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10552 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
  3. From: navarra@casbah.acns.nwu.edu (John Navarra)
  4. Subject: Re: A question on ls
  5. Message-ID: <1992Aug31.053240.8200@news.acns.nwu.edu>
  6. Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
  7. Organization: Northwestern University, Evanston Illinois.
  8. References: <1992Aug29.233534.27967@umbc3.umbc.edu> <1992Aug29.235425.26762@mcc.com> <Yec2E4i00Vol44IFh7@andrew.cmu.edu>
  9. Distribution: na
  10. Date: Mon, 31 Aug 1992 05:32:40 GMT
  11. Lines: 20
  12.  
  13. In article <Yec2E4i00Vol44IFh7@andrew.cmu.edu> sm86+@andrew.cmu.edu (Stefan Monnier) writes:
  14. >
  15. >ls | grep -v '\.Z$'
  16. >
  17. >And with the ls-only version, you will have some problems if the considered 
  18. >directory has subdirectories!
  19. >
  20. And, if you are not worried about subdirectories, you can try
  21.  
  22. $ find . -type f -a \! -name '*.Z' -print
  23.  
  24. which will be faster (but will list all non-.Z files in subdir below '.')
  25.  
  26. -tms
  27.  
  28. -- 
  29. You can get further with a kind word | You can get further with a kind word
  30. and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
  31.           --al capone                |           -- John Navarra
  32. =======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
  33.