Getting started with conditionals

  • + 0 comments

    read -p "y" char

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