Command pipelines in Bash: chaining commands and handling errors
How to chain commands with Bash pipes, why the default error-handling behaviour is dangerous, and how to fix it with pipefail, PIPESTATUS, and a defensive script header.
Linux administration, troubleshooting and operations on production systems.
How to chain commands with Bash pipes, why the default error-handling behaviour is dangerous, and how to fix it with pipefail, PIPESTATUS, and a defensive script header.
AWK scripts for converting between IP addresses and decimal numbers – and why this makes a reliable source of unique server IDs for MySQL replication clusters and other distributed systems.