Advertisement
Tariqul_Islam

Getting started with conditionals

Aug 7th, 2020
1,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.16 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. read n
  4.  
  5. if [[ ("$n" == "y") || ( "$n" == "Y" ) ]]; then
  6.     echo "YES"
  7. elif [[ ("$n" == "n") || ( "$n" == "N" ) ]]; then
  8.     echo "NO"
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement