Home > OS > Where is this subject has a problem ()
Where is this subject has a problem ()
Time:10-06
Please read the following script, find out the error code, #!/bin/sh For (inti=0; i<=10; I++) { Echo '$I ' # please see the error of the for loop, written in the following # 1, # 2, # 3.
CodePudding user response:
The last patch "} "
CodePudding user response:
#!/bin/bash
For I in {1.. 10} Do Echo $I; The done
CodePudding user response:
1, the for ((inti=0; i<=10; I++)) 2, the last line of a less} 3, echo '$I this is like Chinese quotes, English also not line, should be removed or double quotation marks in English