TIL: Unix shells have a $RANDOM env variable

Leverage $RANDOM in Unix shell scripts for controlled randomness and use awk to generate random numbers within defined ranges.

April 9, 2019

Failing fast in bash scripts

Use the -e option or set -e in Bash scripts to halt execution upon encountering any non-zero exit status, ensuring immediate termination upon failure.

July 27, 2015

Grep recursively for text

Search recursively for text in all files in the current directory

May 25, 2012