str="hello,world,i,like,you,babalala"
for i in `echo "$str" | sed 's/,/\n/g'`
do
aa=$i
echo $aa
done
字符串分割后逐个处理 shell split
最新推荐文章于 2023-01-24 10:06:46 发布
str="hello,world,i,like,you,babalala"
for i in `echo "$str" | sed 's/,/\n/g'`
do
aa=$i
echo $aa
done