运维网's Archiver
论坛
›
Shell/Powershell
› shell字符串操作(替换,截取)
zhuce
发表于 2017-5-16 06:04:03
shell字符串操作(替换,截取)
A='abc.sina.txt';
echo ${A:(-3)} #从倒数第三个开始截取,即:取最后3个
页:
[1]
查看完整版本:
shell字符串操作(替换,截取)