#### LAST DOC MODIFY: 2011-11-18 #!/bin/bash #### GET PATH DIRECTORY BASH SCRIPT IS RUNNING IN script_pth=`basename $0` script_dir=`dirname $0` if [ "$script_dir" = "." ] then scpt=`which $script_pth` script_dir=`dirname $scpt` fi echo $script_dir __________________________________________________________________________________________ Copyright 2000-2011 Dylan Schneider. All Rights Reserved. This document uses unix line breaks(LF). Text on macnode.com is for example only, not as actual working instructions. Text on macnode.com should only be used as a guide, and only by advanced it professionals.