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

  1. Path: sparky!uunet!peora!tarpit!bilver!vicstoy!ctmnix!chris
  2. From: chris@ctmnix.UUCP (Chris Matthews)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: A question on ls
  5. Message-ID: <44@ctmnix.UUCP>
  6. Date: 1 Sep 92 01:37:38 GMT
  7. References: <6786@tekig7.PEN.TEK.COM> <1992Aug29.233534.27967@umbc3.umbc.edu>
  8. Reply-To: chris@ctmnix.UUCP (Chris Matthews)
  9. Distribution: na
  10. Organization: Underground Nixbox Creations
  11. Lines: 29
  12.  
  13. In article <1992Aug29.233534.27967@umbc3.umbc.edu> rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
  14. >>In article <6786@tekig7.PEN.TEK.COM> naren@tekig5.pen.tek.com (Naren Bala) writes:
  15. >>>If I type
  16. >>>% ls *.Z 
  17. >>>All files with .Z extension are displayed.
  18. >>>
  19. >>>What command would I type to display all files that do not have a .Z 
  20. >>>extension ?
  21. >>
  22. >>
  23. >>--
  24.  
  25. How about:
  26. find ./ -print | egrep -v "Z" 
  27.  
  28. or
  29. find ./ -print | egrep -v "z"
  30.  
  31. Should work in all shells.
  32.  
  33. Tested in SCO 3.2.2.
  34. Chris
  35. Genisys Corp.
  36. Mon Aug 31 21:09:06 EDT 1992
  37. =-=-
  38. =-=-
  39. =-=-
  40.  
  41.  
  42.