Bash Script
Written by
in
You should run this command within a script!
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"