📝 Prompt

Bash / Shell Script Generator

Write a safe, portable shell script for a described automation task.

CodingProductivity 💾 0 saves by 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.
Share 𝕏 in LinkedIn WhatsApp Reddit

Use this prompt in one click

Save it, fill in the [[variables]], and inject it straight into ChatGPT, Claude or Gemini with the free PromptChief extension.

Open in Prompt Hub →

← Browse all prompts