Bash scripting guidance — safe scripting patterns, quoting, error handling, pipes, and maintainable shell code.