Last active
November 9, 2022 02:21
-
-
Save jmgilman/776fe8b01a7df3dfdefe36f0e964be24 to your computer and use it in GitHub Desktop.
Snippets - Bash
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
|
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
#!/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