| Line 24: |
Line 24: |
| | === Loops === | | === Loops === |
| | ==== While ==== | | ==== While ==== |
| | + | <source lang="bash"> |
| | + | #!/bin/bash |
| | + | COUNTER=0 |
| | + | while [ $COUNTER -lt 10 ]; do |
| | + | echo The counter is $COUNTER |
| | + | let COUNTER=COUNTER+1 |
| | + | done |
| | + | </source> |
| | + | |
| | ==== For ==== | | ==== For ==== |
| | === Conditional === | | === Conditional === |