Generate a robust, safe Bash script with strict mode, error handling, logging, and argument parsing for any automation task you describe.
## CONTEXT Most Bash scripts written in the wild are fragile: they ignore failed commands, break on filenames with spaces, and offer no logging or rollback. In 2026 the baseline for a production-grade shell script includes strict mode (set -euo pipefail), defensive quoting, trap-based cleanup, structured logging, and…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro