vault backup: 2024-05-30 18:24:46
This commit is contained in:
parent
997b584c40
commit
29b667b999
@ -80,6 +80,10 @@ for THING in $THINGS; do
|
|||||||
echo "Doing something to $THING"
|
echo "Doing something to $THING"
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
The above example iterates over a space separated list of items, but if you wanted to iterate over a range of numbers, you could do something like this:
|
||||||
|
```bash
|
||||||
|
for i in {1..10} ; do ... ; done
|
||||||
|
```
|
||||||
|
|
||||||
### While loops
|
### While loops
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user