ファイルパスのディレクトリ部分を取り出す
code:sh
my_dir_name=$(dirname "$your_path_here")