shell 脚本之循环输出多个语句

#!/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
#!/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