您尚未登录。
页次: 1
#!/bin/bashstring="hello,shell,split,test" #将,替换为空格 array=(${string//,/ })
for var in ${array[@]}do echo $vardone
离线