Created
September 26, 2010 16:16
-
-
Save hobs/598068 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# case $variable in | |
read -p "Enter an animals name: " animal | |
echo -n "A $animal has " | |
case $animal in | |
horse|cow|cat) echo -n "four ";; | |
man|woman) echo -n "two ";; | |
*) echo -n "an unknown number of ";; | |
esac | |
echo "legs!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment