#!/usr/bin/bash#for i in {1..10}#for i in $(seq 1 10) 等价 for i in `seq 1 10`for ((i=1;i<10;i++))do
echo $i;done
#!/bin/bash#for i in {a,b,c}#for i in {a..z}#a="a b c d";for i in $afor i in `ls`;doecho $i;done
#!/bin/bashfor i in /proc/*;doecho i;done
1: while 条件测试2: do3: 执行命令4: done
1: untile 条件测试2: do3: 执行命令4: done
原文:https://www.cnblogs.com/cyj1258/p/12260884.html