shell截取某段

str="123456"

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

posted @ 2012-09-04 00:00  ghost&240  阅读(125)  评论(0编辑  收藏  举报