Getting started with conditionals

  • + 0 comments
    read x
    
    case $x in
        y|Y) echo "YES" ;;
        n|N) echo "NO" ;;
    esac