Last active
November 3, 2019 19:11
-
-
Save JeffLabonte/fd6af88ca19dad710af134a3c7f9383c 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 | |
# This is a script that validate the length of arguments | |
if [ $# -lt 3 ]; then | |
cat <<- EOM | |
this command requies three arguments: | |
username, userid, and favorite number. | |
EOM | |
else | |
# Program goes here | |
echo "Username: $1" | |
echo "UserID: $2" | |
echo "Favorite Number: $3" | |
fi |
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 | |
# This is simple bash script | |
select animal in "cat" "dog" "bird" "fish" | |
do | |
echo "You selected $anima" | |
break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment