小编Sid*_*ari的帖子

${p:2:1} shell 脚本中的含义

谁能告诉我${p:2:1}在 shell 脚本中的含义,如:

var1=""
for p in [1,2,3,4]
do
    var1="${var1} ${p:2:1}"
done
Run Code Online (Sandbox Code Playgroud)

bash string shell-script variable-substitution

1
推荐指数
1
解决办法
1011
查看次数