Bash Scripting Cheat Sheet: Variables, Loops, Functions and More
A practical Bash reference: variables, arguments, conditions, loops, functions, arrays, string handling, redirects and exit codes with examples.
A practical Bash reference: variables, arguments, conditions, loops, functions, arrays, string handling, redirects and exit codes with examples.
Make Bash scripts fail safely: strict mode, quoting, trap cleanup, mktemp, flock, dry-run mode and ShellCheck, with a reusable template.
Handy shell one-liners for finding files, analyzing logs, processing text, renaming in bulk, monitoring the system and moving data.
Schedule jobs with cron: syntax, examples, environment and PATH problems, the percent sign trap, flock, logging and systemd timer alternatives.