Created
November 3, 2020 15:13
-
-
Save iamsenorespana/1eb1ee21862066e480f511655f006639 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 | |
echo ""; | |
echo "---- Welcome to Counting ----"; | |
echo ""; | |
for x in one two three four five six seven eight nine ten | |
do | |
echo "Hello Number: $x" | |
if [ "$x" = "three" ]; then | |
echo ""; | |
echo "============================================"; | |
echo "== My Favorite Number is 3 =="; | |
echo "============================================"; | |
echo ""; | |
fi | |
done | |
echo "----- DONE ----"; | |
echo ""; |
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 | |
echo ""; | |
#!/bin/bash | |
echo -n "Enter the name of a country: " | |
read COUNTRY | |
echo ""; | |
echo -n "The official language of $COUNTRY is " | |
echo ""; | |
case $COUNTRY in | |
Lithuania) | |
echo -n "Lithuanian" | |
;; | |
Romania | Moldova) | |
echo -n "Romanian" | |
;; | |
Italy | "San Marino" | Switzerland | "Vatican City") | |
echo -n "Italian" | |
;; | |
USA | "United States" ) | |
echo -n "United States of America" | |
;; | |
*) | |
echo -n "unknown" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment