#!/bin/bash oldwd=$(pwd) rl_self=$(readlink -f $0) dir_self=$(dirname $rl_self) echo "" echo "directory self is $dir_self"