Friday, June 22, 2012

bash: get full path of script

In bash, $0 is a variable that contains the name of the script, but not always its full path. This is how to get full path:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.