3 results
tagged
scripts
Better Bash Scripting in 15 Minutes
The tips and tricks below originally appeared as one of Google's "T esting on the Toilet" (TOTT) episodes.
I start every bash script with the following prolog:
#!/bin/bash
set -o nounset
set -o errexit
Use functions
- Favor $() over backticks (`)
- Favor [[]] (double brackets) over []
- Avoiding Temporary Files with <()
October 14, 2026 at 10:34:00 AM EDT
*
FILLER
Want to know the easiest way to save time? Use `make`!
But there is a good standard UNIX tool. By standard I mean it actually has robust documentation, that many forgot. Or never learned? I’m talking about make. More accurately, this article focuses on GNU make. It’s available on macOS, Windows, Linux and most other operating systems.
March 8, 2019 at 4:07:32 PM EST
*
FILLER
slayeroffice | photo fade
FILLER