Getting started with conditionals

  • + 0 comments

    read input

    if [[ $input =~ [Yy] ]]; then echo "YES" else echo "NO" fi