LINE="/string/to/cut.txt"
所以字符串看起来就像这样
LINE="/string/to/"
提前致谢!
$ dirname "/string/to/cut.txt" /string/to