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

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!lll-winken!sol.ctr.columbia.edu!usc!wupost!darwin.sura.net!haven.umd.edu!news.umbc.edu!math9.math.umbc.edu!rouben
  2. From: rouben@math9.math.umbc.edu (Rouben Rostamian)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: A question on ls
  5. Message-ID: <1992Aug29.233534.27967@umbc3.umbc.edu>
  6. Date: 29 Aug 92 23:35:34 GMT
  7. References: <6786@tekig7.PEN.TEK.COM>
  8. Sender: newspost@umbc3.umbc.edu (News posting account)
  9. Distribution: na
  10. Organization: University of Maryland Baltimore Campus
  11. Lines: 14
  12.  
  13. In article <6786@tekig7.PEN.TEK.COM> naren@tekig5.pen.tek.com (Naren Bala) writes:
  14. >If I type
  15. >% ls *.Z 
  16. >All files with .Z extension are displayed.
  17. >
  18. >What command would I type to display all files that do not have a .Z 
  19. >extension ?
  20.  
  21. The wildcards are expanded by the shell, so the answer is: it depends on
  22. the shell you are using.  In tcsh, you type:
  23. % ls ^*.Z
  24. In sh and csh you are out of luck.  In other shells, I don't know.
  25.  
  26. --
  27.