This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
I’ve been writing Bash scripts for years and have slowly built up a boilerplate of sorts that I typically copy and paste into new scripts at the start. Hence a “ preamble boilerplate.” If you just want to copy and paste, here you go. #!/usr/bin/env bash # Strict settings set -o errexit set -o pipefail set -o nounset # On-the-fly debugging [[ -n " ${DEBUG:-} " ]] && set -x # "Magic" variables…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.