Archive about books now > Tag: bash

How I write bash

This is a short guide to help me write bash scripts since I usually tend to review my previous code in order to remember how I write Bash.

Template file

This is what I usually start every bash script with:

#!/bin/bash

set -o errexit
set -o nounset
set -o …