Bash get self directory trick Get link Facebook Twitter Pinterest Email Other Apps By Steve Morin October 11, 2007 This bash trick is great have been using it for years wanted to share. SELF=$(cd $(dirname $0); pwd -P)/$(basename $0) Read more