Skip to content

Instantly share code, notes, and snippets.

@jmgilman
Last active November 9, 2022 02:21
Show Gist options
  • Save jmgilman/776fe8b01a7df3dfdefe36f0e964be24 to your computer and use it in GitHub Desktop.
Save jmgilman/776fe8b01a7df3dfdefe36f0e964be24 to your computer and use it in GitHub Desktop.
Snippets - Bash
#!/usr/bin/env bash
# A sample help function
function help()
{
echo "Description of the program."
echo
echo "Usage: name [-lh] [-n number] arg1 arg2 [opt1] [opt2]"
echo "Arguments:"
echo "arg1 The first argument."
echo "opt1 Optional first argument."
echo "Options:"
echo "l Print the GPL license notification."
echo "h Print this Help."
echo "n Run program n times."
echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment