home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rpi!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.questions
- Subject: Re: sh vs. filename extensions
- Date: 30 Jul 1992 19:32:00 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 14
- Message-ID: <159g3gINN5pi@early-bird.think.com>
- References: <1992Jul29.225649.5471@vine.cp10.es.xerox.com>
- NNTP-Posting-Host: telecaster.think.com
- Keywords: sh filename extensions
-
- In article <1992Jul29.225649.5471@vine.cp10.es.xerox.com> BHamilton.LAX1B@Xerox.com writes:
- >Is there any way to test filename extensions using sh? Using csh,
- >I can simply say
- >
- > if ($f:e == "Z") then...
-
- case $f in
- *.Z) ... ;;
- esac
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-