#for ls
for i in `ls`; do
echo $i
done
#for File
for File in /proc/sys/net/ipv4/conf/*/accept_redirects; do
echo $File
done
#直接指定循环内容
for i in f1 f2 f3 ;do
echo $i
done
#C 语法for 循环:
for (( i=0; i<10; i++)); do
echo $i
done