Getting started with conditionals

  • + 0 comments

    I used case statement ->

    read input case $input in [yY]) echo "YES" ;; [nN]) echo "NO" ;; esac