vault backup: 2024-05-30 18:22:46
This commit is contained in:
parent
3c8db1d8ff
commit
3ffea3c144
@ -71,6 +71,18 @@ goodbye)
|
||||
esac
|
||||
```
|
||||
|
||||
## Loops
|
||||
### For loops
|
||||
`for` loops are used when you have a finite collection over which you want to iterate, such as a list of files, or a list of server names:
|
||||
```bash
|
||||
|
||||
THINGS="thingone thingtwo thingthree"
|
||||
for S in $THINGS; do
|
||||
echo "Doing something to $S"
|
||||
done
|
||||
```
|
||||
### While loops
|
||||
|
||||
## Commands
|
||||
| Command | Description |
|
||||
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
|
Loading…
Reference in New Issue
Block a user