📌  相关文章
📜  bash 从文件名获取路径 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:21.950000             🧑  作者: Mango

代码示例1
# Basic syntax:
dirname /full/file/name.txt

# Example usage:
dirname /full/file/name.txt
--> /full/file

# Note, if you want just the file name, use basename, e.g.:
basename /full/file/name.txt
--> name.txt