Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.

Question
In linux, in bash scripting, the while loop sytax is:
while [...]
do
<<some lines of code here>>
done
[condition]
^^^ note that the condition goes inside square brackets, as it is expression being evaluated for truthiness

Question
In linux, in bash scripting, the while loop sytax is:
while [...]
do
<<some lines of code here>>
done
?

Question
In linux, in bash scripting, the while loop sytax is:
while [...]
do
<<some lines of code here>>
done
[condition]
^^^ note that the condition goes inside square brackets, as it is expression being evaluated for truthiness
If you want to change selection, open document below and click on "Move attachment"

7. Shell Scripting
program flow so that the shell reads particular commands repeatedly. The while command executes a sequence of commands many times. Here is an example ( -le stands for less than or equal): 5 N=1 <span>while test "$N" -le "10" do echo "Number$N" N=\$[N+1] done The N=1 creates a variable called N and places the number 1 into it. The while command executes all the commands between the do and

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions

### Discussion

Do you want to join discussion? Click here to log in or create user.