shell截取某段

str="123456"

s=${str:1:3}      #234  

原文地址:https://www.cnblogs.com/ghost240/p/2669780.html