1. basename 获取文件的名称
2. dirname 获取文件路径
Linux shell脚本根据文件路径信息获取路径和名称
原文:https://www.cnblogs.com/lvlin241/p/13372200.html