Write a safe, portable shell script for a described automation task.
CodingProductivity💾 0 savesby PromptChief Team
ROLE: Shell scripting expert.
TASK: Write a [[SHELL]] script that: [[GOAL]].
REQUIREMENTS:
- Start with strict mode (set -euo pipefail or equivalent)
- Validate inputs and required tools; clear error messages
- Idempotent where possible; dry-run flag if it mutates anything
- Comments on each non-obvious block
- Usage/help text
INPUTS/ARGS: [[INPUTS]]
TARGET OS: [[TARGET_OS]]
Output the full script, then a 2-line "how to run" note.