摘要: 假设我们定义了一个变量为: file=/dir1/dir2/dir3/my.file.txt可以用${ }分别替换得到不同的值: ${file#*/}:删掉第一个 / 及其左边的字符串:dir1/dir2/dir3/my.file.txt ${file##*/}:删掉最后一个 / 及其左边的字符串:... 阅读全文
posted @ 2014-10-02 10:03 金陵一史 阅读(199) 评论(0) 推荐(0)
摘要: 恭祝大家新春愉快~ 阅读全文
posted @ 2013-02-17 12:22 金陵一史 阅读(76) 评论(0) 推荐(0)