vault backup: 2024-05-30 18:31:46

This commit is contained in:
zleyyij 2024-05-30 18:31:46 -06:00
parent dfe1034f5e
commit ab227e2aba

View File

@ -81,7 +81,7 @@ If using `test` or the shorthand of test (`[]`), there are a variety of binary c
| `-ge` | Is greater than or equal to | | `-ge` | Is greater than or equal to |
| `-lt` | Is less than | | `-lt` | Is less than |
| `-le` | Is less than or equal to | | `-le` | Is less than or equal to |
The above list is The above list is far from complete but it contains some of the more commonly used operators
## Loops ## Loops
### For 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: `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:
@ -105,7 +105,9 @@ while [ $i -lt 10 ]; do
done done
echo “Done counting” echo “Done counting”
``` ```
### While loops
## Functions
## Commands ## Commands
| Command | Description | | Command | Description |