Skip to content

Instantly share code, notes, and snippets.

@bleepbloop
Created February 19, 2011 06:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bleepbloop/834891 to your computer and use it in GitHub Desktop.
Save bleepbloop/834891 to your computer and use it in GitHub Desktop.
Simple bash if statement for usage
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 -n [number] -m [message] -u [username] -p [password]";
echo "";
echo "[number] = SMS number to send message to";
echo "[message] = Text of message you want to send";
echo "[username] = Username assocated with aql account";
echo "[password] = Password assocated with aql account";
echo " Both the username and password options are optional and";
echo " override the account credentials defined in this script.";
echo "";
exit 1;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment