Last active
August 30, 2017 20:54
-
-
Save caljess599/b0bf0263db9fe09ebe60a8b25bfd00ed 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 | |
# 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