base函数
摘要:
Basename函数参考资料http://monkeymusic.blog.163.com/blog/static/4797639200912533652666/解释basename-stripdirectoryandsuffixfromfilenames去除给出字符串的前缀例子Shell命令:basenamea/b/c/d/test/a.ppt输出:a.ppt可以在后面添加一个参数,通过这个参数来去除后缀Shell命令:basenamea/b/c/d/test/a.ppt.ppt输出:a#include#includevoidmain(){char*test="/etc/test/ 阅读全文