• 2022-10-25
    下列代码样例中,哪个存在错误:()
    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