shell字符串操作(替换,截取) ama2000 · 2013-02-05 15:11 · SHELL · 编程语言 · Markdown A='abc.sina.txt'; echo ${A:(-3)} #从倒数第三个开始截取,即:取最后3个