Better Bash Scripting

Robert Muth: I start every bash script with the following prolog: #!/bin/bash set -o nounset set -o errexit This will take care of two very common errors: Referencing undefined variables (which default to “”) Ignoring failing commands […] Bash has a number of (underappreciated) ways to manipulate strings. […] Some commands expect filenames as parameters … Continue reading Better Bash Scripting