Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!dsrgsun.CES.CWRU.Edu!bammi From: bammi@curie.ces.cwru.edu (Jwahar R. Bammi) Newsgroups: comp.sys.atari.st Subject: Re: Gulam question Message-ID: Date: 6 Sep 90 20:57:18 GMT References: <56683@iuvax.cs.indiana.edu> Sender: news@usenet.ins.cwru.edu Organization: Case Western Reserve University Lines: 14 In-Reply-To: pwp@iuvax.cs.indiana.edu's message of 6 Sep 90 15:08:22 GMT In article <56683@iuvax.cs.indiana.edu> pwp@iuvax.cs.indiana.edu (Paul Purdom) writes: a regular file a directory, etc. Is there some way to test what the extension on a file is? I don't see how to do this from reading the manual, but maybe I have overlooked something. Not directly, but you can run an external program, and test its return status with an 'if'. the return status of the last command is recorded in the shell variable 'status'. -- bang: {any internet host}!dsrgsun.CES.CWRU.Edu!bammi jwahar r. bammi domain: bammi@dsrgsun.ces.CWRU.edu GEnie: J.Bammi