下列shell中的循环语句结构,正确的是()
A: A. while condition then commands done
B: B. while condition do commands done
C: C. while : do commands done
D: D. until condition do commands done
A: A. while condition then commands done
B: B. while condition do commands done
C: C. while : do commands done
D: D. until condition do commands done
举一反三
- 以下语句错误的是:______ 。 A: Do while(Condition) B: Statements C: Loop D: Do E: Statements F: Loop while(condition) G: Do until(condition) H: Statements I: Loop J: Do until(condition) K: Statements L: end do
- Shell语言中支持的循环语句类型包括() A: forname[inword];dolist;done B: for((expr1;expr2;expr3));dolist;done C: while[expr]dolist;done D: dolist;while[expr] E: loopdolist;next[expr]
- @while函数的正确使用格式是 A: condition: @while B: @while( ):condition C: @WHILE(CONDITION: ) D: @while{condition}()
- I won't go to bed until I ___ the job. A: have done B: had done C: will do D: do
- 下列代码样例中,哪个存在错误:() A: for filename in $(ls) do cat $filename done B: for((i=0;i<10;i++)) do echo $i done C: x=1 sum=0 while [ $x -le 10 ] do let sum=sum+$x let x=x+1 done echo\ $sum D: for $i in 1 2 3 4 5 do echo $i done