标签:linux for
for循环默认以空格分割
[xiaomo@vm01 ~]$ cat test2.sh
#!/bin/bash
for i in 1 2 3 4 5
do
echo $i
done
echo "循环结束!"
[xiaomo@vm01 ~]$ ./test2.sh
1
2
3
4
5
循环结束!
[xiaomo@vm01 ~]$
本文出自 “小莫” 博客,请务必保留此出处http://xiaofengmo.blog.51cto.com/10116365/1744949
标签:linux for
原文地址:http://xiaofengmo.blog.51cto.com/10116365/1744949