Skip to content

Instantly share code, notes, and snippets.

@JeffLabonte
Last active November 3, 2019 19:11
Show Gist options
  • Save JeffLabonte/fd6af88ca19dad710af134a3c7f9383c to your computer and use it in GitHub Desktop.
Save JeffLabonte/fd6af88ca19dad710af134a3c7f9383c to your computer and use it in GitHub Desktop.
#!/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
#!/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