如何从完整路径返回文件和父目录?

时间:2019-10-29 18:53:42

标签: bash

我正在尝试从文件列表中获取文件名和父文件夹

/path/to/file/here/file.txt

需要成为

/here/file.txt

0 个答案:

没有答案