Getting started with conditionals

  • + 0 comments

    read input

    if [[ input == 'y' ]]; then echo "YES" elif [[ input == 'n' ]];then echo "NO" fi