bash
Elevate script to sudo
Default and alternative command
Provide an alternative command if the preferred command is not available.
Environment variable defaults
Cleanup a script on exit using trap
Parallel
Run commands in parallel
Add directory to $PATH if it doesn't exist
Check if a file ends with newline
Check if a variable is set
Check network connectivity
Log script output to file and console
Safe Scripts (Strict Mode)
Script dir and path
Get the directory and path of a script.