|
⇤ ← Revision 1 as of 2023-01-20 17:25:07
Size: 152
Comment:
|
Size: 317
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| {{{ case $INPUT_STRING in y) echo "Proceeding..." ;; n) echo "Quitting..." ;; *) echo "Please enter y or n" ;; esac }}} |
Shell Logic
Conditional Logic
Case Switching Logic
case $INPUT_STRING in
y)
echo "Proceeding..."
;;
n)
echo "Quitting..."
;;
*)
echo "Please enter y or n"
;;
esac