Tag: absolute
-
Find absolute path of Bash script
You should run this command within a script! abspath=”$(cd “${0%/*}” 2>/dev/null; echo “$PWD”/”${0##*/}”)”
You should run this command within a script! abspath=”$(cd “${0%/*}” 2>/dev/null; echo “$PWD”/”${0##*/}”)”