- To: Thom May <thomas@xxxxxxxxxxxxxx>
- Subject: Re: [SLUG] An ickle bit of shell scripting
- From: Scott Howard <scott@xxxxxxxxxx>
- Date: Mon Nov 13 23:11:35 2000
- Cc: slug@xxxxxxxxxxx
- User-agent: Mutt/1.2.5i
On Mon, Nov 13, 2000 at 11:59:33AM +0000, Thom May wrote:
> Hi folks
> I'm putting together a swift shell proggy, but it's going tobe
> symlinked to by about 4 aliases. I know that there is a way of
> working out what name the script has been called by, but I can't
> for the life of me remember what it is...
basename
In particular :
CalledAs=`basename $0`
Scott.