カレントディレクトリより一つ上のディレクトリ名を取得する

DIR_NAME=`pwd | xargs dirname`
echo $DIR_NAME