Welcome to the Bash Scripting Exercises repository! This repository contains a collection of exercises to help you learn and practice Bash scripting. The exercises are organized into different subfolders, each focusing on a specific topic or concept in Bash scripting.
To get started with these exercises, you'll need to have Bash installed on your system. Most Unix-like operating systems, including Linux and macOS, come with Bash pre-installed. If you are using Windows, you can use Git Bash or the Windows Subsystem for Linux (WSL).
- Bash (version 4.0 or higher)
- Text editor (e.g., Vim, Nano, VS Code)
Clone the repository to your local machine using the following command:
git clone https://github.com/NaghmeM/DevOpsTest-bash.git
cd DevOpsTest-bashThe repository is structured as follows:
Each exercise is a Bash script (.sh file) that you can run in your terminal. The exercises are designed to help you practice various aspects of Bash scripting, from basic commands to more complex scripting techniques.
To run an exercise, navigate to the appropriate folder and execute the script. For example, to run the first basic exercise:
cd basics
bash backup_to_s3Each exercise script contains comments that describe what the script does and what you need to do. Make sure to read these comments carefully before modifying or running the script.
We welcome contributions! If you have a new exercise to add or an improvement to an existing one, please fork this repository, create a new branch, and submit a pull request. Here are the steps:
- Fork the repository.
- Create a new branch (
git checkout -b my-new-exercise). - Commit your changes (
git commit -am 'Add new exercise'). - Push to the branch (
git push origin my-new-exercise). - Create a new pull request.
Please make sure to follow the existing format and structure of the repository when adding new exercises.
This project is licensed under the Apache2 License - see the LICENSE file for details.
Happy scripting! If you have any questions or need further assistance, feel free to open an issue in this repository.