Shell script 8-19

Common logical statements

1, for statement:

for variable in list; do
   Loop
done

for((初始语句; 判断语句; 值变化语句)); do
   Loop
done

case statement:

2, case variable in
PAT1)