http://www.itmedia.co.jp/help/tips/linux/l0621.html
basename, dirnameコマンドを使えば取り出せる
# basename /root/dir1/dir2/file file # dirname /root/dir1/dir2/file /root/dir1/dir2
http://www.itmedia.co.jp/help/tips/linux/l0621.html
basename, dirnameコマンドを使えば取り出せる
# basename /root/dir1/dir2/file file # dirname /root/dir1/dir2/file /root/dir1/dir2