home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10614 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  923 b 

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: A question on ls
  5. Message-ID: <14408@auspex-gw.auspex.com>
  6. Date: 1 Sep 92 18:43:18 GMT
  7. References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu> <44@ctmnix.UUCP>
  8. Sender: news@auspex-gw.auspex.com
  9. Distribution: na
  10. Organization: Auspex Systems, Santa Clara
  11. Lines: 16
  12. Nntp-Posting-Host: bootme.auspex.com
  13.  
  14. >>>>What command would I type to display all files that do not have a .Z 
  15. >>>>extension ?
  16. >
  17. >How about:
  18. >find ./ -print | egrep -v "Z" 
  19.  
  20. Yup, the first sure exclude files with a ".Z" extension.
  21.  
  22. In fact, it'll exclude files with a "Z" anywhere in the name, even if
  23. they *don't* have a ".Z" extension.
  24.  
  25. >find ./ -print | egrep -v "z"
  26.  
  27. Doesn't exclude files with a ".Z" extension, unless they also have a
  28. lower-case "z" in the name (or unless the "egrep" on your system is
  29. horribly broken).
  30.