Getting started with conditionals

  • + 0 comments

    This worked for me.

    read Stdin
    
    if [[ $Stdin == ['yY'] ]]
    then
        echo "YES"
    else
        echo "NO"
    fi
    

    `