Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucrmath!yakker From: yakker@ucrmath.ucr.edu (matt robinson) Newsgroups: comp.unix.questions Subject: Getting suffix of filename in /bin/sh script. Message-ID: <5416@ucrmath.UCR.EDU> Date: 11 Apr 90 08:01:06 GMT Sender: news@ucrmath.UCR.EDU Reply-To: yakker@ucrmath.ucr.edu (Matt D. Robinson) Followup-To: yakker@ucrmath.ucr.edu Organization: University of California, Riverside Lines: 9 What would be the fastest method of parsing the suffix off of a filename? Say, I have filename.c, and I want to check for the .c portion? (I have multiple files I want, not just .c, so I need to know what the suffix is in order to choose a compiler.) I would appreciate any information from anyone. Please E-mail, and if people would like, I can compose a list and post to this newsgroup. Thanks! Matt Robinson -- yakker@ucrmath.ucr.edu -- ..!{uci,ucsd}!ucrmath!yakker