Terminal problem
hi ı'm using fedora 14
and ı have a problem ı want to try some codes to run in terminal but ı got error ı didn't figure out what is the problem and how can ı fix it please help me!! thank you :) while[$i -le 10] do echo "$n * $i ='expr $i \* $n'"i='expr $i + 1' done ---------- ı'm getiing line 1: [: missing ']' |
Greetings!
Assuming you're using the bash shell, try this; while true do if [ $i -le 10 ]; then echo "$n * $i = 'expr $i \* $n'" i='expr $i + 1' fi done If that doesn't work, I would re-read that chapter in your classbook. :) |
Quote:
-le: unary operator expected ı should check it my slayts one more time |
Quote:
|
@tayyyar
I left out a "then if i = 10...break" intentionally. We get quite a few "homework questions" here, and I wasn't sure if that's what your post was. :) |
All times are GMT -5. The time now is 02:37 PM. |