Hello,
From within a Bourne shell script called MyScript.sh, $0 returns the name for the currently executing script as: ./MyScript.sh
How can I just return the base name without the excess characters "./" and ".sh"?
I just want to return: MyScript
Thanks,
Michael42
From within a Bourne shell script called MyScript.sh, $0 returns the name for the currently executing script as: ./MyScript.sh
How can I just return the base name without the excess characters "./" and ".sh"?
I just want to return: MyScript
Thanks,
Michael42