Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!news.nd.edu!news.cs.indiana.edu!nstn.ns.ca!bonnie.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsipmh From: afsipmh@cidsv01.cid.aes.doe.CA Newsgroups: comp.unix.shell Subject: tail of a path in Bourne Message-ID: <1991May13.130524.5466@cid.aes.doe.CA> Date: 13 May 91 13:05:24 GMT Sender: afsipmh@cid.aes.doe.CA (Patrick Hertel) Reply-To: afsipmh@cidsv01.cid.aes.doe.CA () Distribution: na Organization: Environment Canada Lines: 11 In the C shell if you have a variable z=/a/b/c/d then scho $z:t will give you just d. Is there something equally as trivial in the Bourne shell? Basically I want to be able to get the name of a script out of $0 without the path. This surely is a wheel that has already been invented. -- Pat Hertel Canadian Meteorological Centre Analyst/Programmer 2121 N. Service Rd. phertel@cmc.aes.doe.ca Dorval,Quebec Environment Canada CANADA H9P1J3