Linux之dirname与basename命令

1.dirname:截取前面字段
# dirname /home/deng/share
/home/deng# dirname /home/deng/share/test.h
/home/deng/share2.basename:截取后面字段
# basename /home/deng/share
share# basename /home/deng/share/test.h
test.h

 

本文链接:https://my.lmcjl.com/post/1301.html

展开阅读全文

4 评论

留下您的评论.