You are viewing a single comment's thread. Return to all comments →
I used case statement ->
read input case $input in [yY]) echo "YES" ;; [nN]) echo "NO" ;; esac
Seems like cookies are disabled on this browser, please enable them to open this website
Getting started with conditionals
You are viewing a single comment's thread. Return to all comments →
I used case statement ->
read input case $input in [yY]) echo "YES" ;; [nN]) echo "NO" ;; esac