13,420
edits
Changes
→Additional Loop Statements
<span style="font-family:courier">for x in $(ls)<br>do<br> echo “The item is: $x”<br>done</span><br><br>
[[Image:while-loop.png|thumb|right|170px|Example of how a '''while''' loop works.]]'''Using the while Loop Statement'''
The condition/expression is evaluated, and if the condition/expression is true,<br>the code within … the block is executed.