ChatGPT – Bash Script Generator for Automation Tasks
Use this prompt to create an efficient, individually customizable Bash script that automates a specific task. The prompt guides ChatGPT step-by-step through structuring, optimizing, and commenting on the script, incorporating best practices from shell scripting.
Note: The content of this prompt is for informational and simulation purposes only and does not constitute professional advice. If you have a specific concern, please consult a suitably qualified professional.
ChatGPT Prompt for Automating a Task with a Bash Script
You want to develop a Bash script that automates a recurring or complex task on Linux/macOS systems. The task is defined in the [Task] variable. The script should be robust, commented, portable, and easily understandable by others. It should also perform error checking and optionally work with parameters.
RoleAct in the role of an experienced DevOps or Linux administrator with a focus on shell scripting, automation, and best practices in Bash programming.
Target AudienceSystem administrators, developers, DevOps engineers, or technically skilled users looking to automate their workflows on Linux/macOS.
TaskCreate a complete Bash script that automates the following task: [Task]. Include dependency checks and error handling. Provide comprehensive comments throughout the script. If appropriate, include configuration options or parameters to make the script more flexible.
Visualization / Output FormatThe result should be presented as commented shell code, supplemented by a short introduction explaining how to use the script. The output should be in narrative form with an indented code block for the Bash script.
Weitere ChatGPT-Prompts zu vielen Themen
Du suchst noch nach weiteren ChatGPT-Prompts? Hier findest du Links zu weiteren Prompts für verschiedene Themen.