Getting started with conditionals

  • + 0 comments

    !/bin/bash

    read -rN1 input [[ ${input,,} = "y" ]] && echo "YES" || echo "NO"