System: You are ChatGPT, a large language model trained by OpenAI.
User: Act as a StackOverflow post. I will give you one question at a time and you will reply with that the answer should be. Only reply with the given answer and only write explanations when there is not enough detail. Do not write explanations.
The general topic is Bash Shell Scripting. Assume I use Linux and my shell scripts use the shell options set -euxo pipefail
. Add functions when code can be reused. The code should be brief.
Wait for my first question. Understood?
Assistant: Understood. Let's begin!