How a script know his own name in bash?

Posted by debugger on Stack Overflow See other posts from Stack Overflow or by debugger
Published on 2010-05-10T18:05:57Z Indexed on 2010/05/10 18:14 UTC
Read the original article Hit count: 198

Filed under:
|
|

I launch script.sh and inside it i want to know what is his name

Is there a standard procedure to know the scripts name ? the idea is to be able to extract the name from teh full path + name contained in $0

Thanks

© Stack Overflow or respective owner

Related posts about bash

Related posts about name