In the bash script how do I know the script file name?

Posted by Ma99uS on Stack Overflow See other posts from Stack Overflow or by Ma99uS
Published on 2008-10-10T17:20:41Z Indexed on 2010/03/17 10:21 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

How can I determine the name of the bash script file inside the script itself?
Like if my script is in file runme.sh, than how would I make it to display "You are running runme.sh" message without hardcodding that?

Thanks,

© Stack Overflow or respective owner

Related posts about bash

Related posts about scripting