use like this:
echo Usage: `basename $0` [options]
> -----Original Message-----
> From: Gustav Schaffter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 21, 2000 12:42 PM
> To: redhat-list (Mailing list)
> Subject: bash question
>
>
> Hi,
>
> In a bash script I can look at $0 to find the name of the current script
> file, but if it's started with a full path, I will find the full path
> and filename in $0.
>
> How can I find only the name of the script file even if it's started
> with the full path?
>
> Regards
> Gustav
>
> --
> pgp = Pretty Good Privacy.
>
> To get my public pgp key, send an e-mail to: [EMAIL PROTECTED]
>
> Visit my web site at http://www.schaffter.com
>
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.