shell 字符按长度截取
[root@host-10-11 ~]# echo ${a:0:2}
12
[root@host-10-11 ~]# echo ${a:2:2}
34
[root@host-10-11 ~]# echo ${a:2}
3456
作者:Outsrkem
原文链接:https://www.cnblogs.com/outsrkem/p/17389517.html
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。