A 1-post collection

Bash Scripts Quickstart Guide

Bash scripts are a great way to automate simple tasks in our electronic day-to-day life. Once you get used to writing them, it easily becomes a productivity increasing habit. Here's a list of my most often used bash features and constructs. Shebang and Options I like to start every bash script with the following 3 lines: #!/usr/bin/env bash set -e set noclobber The first is the shebang line which lets us run the script as executable. Note the use of env which makes the

Read more