vault backup: 2024-05-30 18:17:46
This commit is contained in:
parent
ab40593eae
commit
3c8db1d8ff
@ -56,6 +56,21 @@ else
|
||||
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
|
||||
| Command | Description |
|
||||
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
|
Loading…
Reference in New Issue
Block a user