Last active
August 29, 2015 14:25
-
-
Save amitaibu/89a65a78718da90f2e17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n "Is this a good question (y/n)? " | |
read answer | |
if echo "$answer" | grep -iq "^y" ;then | |
echo Yes | |
else | |
echo No | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment