以下实例从字符串第 2 个字符开始截取 4 个字符:
string="runoob is a great site" echo ${string:1:4} # 输出 unoo
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8