Getting started with conditionals

  • + 0 comments
    #!/bin/bash
    read -rN1 INPUT
    [[ ${INPUT,,} = "y" ]] && echo "YES" || echo "NO"