Getting started with conditionals

  • + 0 comments
    read c
    if [ $c = 'Y' -o $c = 'y' ]
    then
        echo "YES"
    else
        echo "NO"
    fi