#!/bin/bash
for str in 'this is a string' 'she is beautiful girl' 'hello,world'
do
echo $str
done
输出结果:
this is a string
she is beautiful girl
hello,world
shell 脚本之循环输出多个语句
阅读 48
2022-06-06
#!/bin/bash
for str in 'this is a string' 'she is beautiful girl' 'hello,world'
do
echo $str
done
输出结果:
this is a string
she is beautiful girl
hello,world
相关推荐
精彩评论(0)