Skip to content

Instantly share code, notes, and snippets.

@caljess599
Last active August 30, 2017 20:54
Show Gist options
  • Save caljess599/b0bf0263db9fe09ebe60a8b25bfd00ed to your computer and use it in GitHub Desktop.
Save caljess599/b0bf0263db9fe09ebe60a8b25bfd00ed to your computer and use it in GitHub Desktop.
#!/bin/bash
# name.sh
# description
# date
# # # # # # # # # # # OLD-TIMEY CHANGELOG # # # # # # # # # # #
# ---- when ---- | -- who -- | -- what -- |
# ----------------------------------------------------------------------------
# 0 Mon 2017 | |
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# # # GLOBAL VARIABLES and FUNCTIONS # # #
# tip: relative paths are your enemy! #
# anypath=/absolute/path/to/relevant/dir
USAGE_MESSAGE="[your message here]"
ARGMIN=
ARGMAX=
usage () {
printf "usage: %s $USAGE_MESSAGE \n" $0 >&2
exit
}
# ADD FUNCTIONS HERE #
# # # MAIN FUNCTION/FUNCTION CALL # #
main () {
#usage test for $ARGMIN
if [ $# -lt $ARGMIN ]; then
usage
fi
#usage test for $ARGMIN
if [ $# -gt $ARGMAX ]; then
usage
fi
# POST-USAGE BEGINS HERE #
} # END OF MAIN
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment