Table of Contents

#!/usr/bin/env bash - Use bash found in the environment path. Protects against not knowing where user's bash is installed.

set options

set options -xeuo

Commonly used options:

Many more options available: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html

Variables

Functions

Declaring a function (needs to happen before use):

function <function_name> { … do things … }

- or -

<function_name>() { … do things … }

Tips