Linux shell 截取字符串

Linux shell 截取字符串

str="1234567890"

out=${str:1:5}

echo ${out}

 

输出:

12345

 

 

 

参考:

https://blog.csdn.net/JineD/article/details/124196546

posted @ 2022-05-31 19:15  悟透  阅读(44)  评论(0)    收藏  举报