Posts

Showing posts from October, 2007

Bash get self directory trick

This bash trick is great have been using it for years wanted to share.
SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)