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

This commit is contained in:
zleyyij 2024-05-30 18:17:46 -06:00
parent ab40593eae
commit 3c8db1d8ff

View File

@ -56,6 +56,21 @@ else
fi fi
``` ```
To test one value against a variety of conditions, you can use `case`:
```bash
case "$1" in
hello|hi)
echo "hello yourself"
;;
goodbye)
echo "nice to have met you"
echo "I hope to see you again"
;;
*)
echo "I didn't understand that"
esac
```
## Commands ## Commands
| Command | Description | | Command | Description |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |