home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9599 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  795 b 

  1. Path: sparky!uunet!gatech!rpi!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: sh vs. filename extensions
  5. Date: 30 Jul 1992 19:32:00 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 14
  8. Message-ID: <159g3gINN5pi@early-bird.think.com>
  9. References: <1992Jul29.225649.5471@vine.cp10.es.xerox.com>
  10. NNTP-Posting-Host: telecaster.think.com
  11. Keywords: sh filename extensions
  12.  
  13. In article <1992Jul29.225649.5471@vine.cp10.es.xerox.com> BHamilton.LAX1B@Xerox.com writes:
  14. >Is there any way to test filename extensions using sh?  Using csh,
  15. >I can simply say
  16. >
  17. >    if ($f:e == "Z") then...
  18.  
  19. case $f in
  20. *.Z) ... ;;
  21. esac
  22. -- 
  23. Barry Margolin
  24. System Manager, Thinking Machines Corp.
  25.  
  26. barmar@think.com          {uunet,harvard}!think!barmar
  27.