Created
September 1, 2016 06:46
-
-
Save roylee0704/87e9a09dad984974105ac092210cb324 to your computer and use it in GitHub Desktop.
better bash programming
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 | |
set -o nounset # referencing undefined variables (which default to "") | |
set -o errexit # ignoring failing commands | |
#chmod +x example.sh always remember to assign permission: execute to the file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment