Return to Snippet

Revision: 15469
at July 7, 2009 01:43 by loungerdork


Initial Code
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"

Initial URL

                                

Initial Description
Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".

Initial Title
Find absolute path of Bash script

Initial Tags
path, script

Initial Language
Bash