Getting started with conditionals

  • + 0 comments
    read input
    if [[ $input == "y" || $input == "Y" ]]
    then
    echo "YES"
    else
    echo "NO"
    fi