shell截取字符串

1
2
3
4
5
6
7
8
#! env sh

v1='tianweiye'
v2='田偉業'

echo ${v1:0:4}

echo ${v2:0:1}

转载请注明来源 https://tianweiye.github.io