home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!decwrl!parc!vine.cp10.es.xerox.com!hamilton
- From: hamilton@vine.cp10.es.xerox.com (Bruce A. Hamilton)
- Newsgroups: comp.unix.questions
- Subject: sh vs. filename extensions
- Summary: how test filename extensions using sh?
- Keywords: sh filename extensions
- Message-ID: <1992Jul29.225649.5471@vine.cp10.es.xerox.com>
- Date: 29 Jul 92 22:56:49 GMT
- Sender: BHamilton.LAX1B@Xerox.com
- Reply-To: BHamilton.LAX1B@Xerox.com
- Organization: Xerox Corp., El Segundo, CA, USA
- Lines: 14
-
- Is there any way to test filename extensions using sh? Using csh,
- I can simply say
-
- if ($f:e == "Z") then...
-
- to test for a .Z file. I can't find anything about substring matching
- in Kochan and Wood "Unix Shell Programming" (except under ksh).
-
- Thanks,
-
- --
- --Bruce
- BHamilton.LAX1B@Xerox.COM
- 310/333-3538
-