This repository documents my journey learning Bash scripting as part
of my bootcamp training.
It contains scripts, examples, and exercises that demonstrate core Bash
concepts and automation techniques.
I have completed the Bash scripting module from the bootcamp, and this repository serves as:
- A reference for my learning
- A collection of practice scripts
- A foundation for more advanced shell scripting projects
By the end of this module, I am able to:
- ✅ Write and execute Bash scripts to automate tasks\
- ✅ Use variables, loops, and conditional statements\
- ✅ Handle user input and command-line arguments\
- ✅ Perform file operations and directory management\
- ✅ Understand error handling and exit codes
- Shebang (
#!/bin/bash) - File permissions (
chmod +x script.sh) - Executing scripts (
./script.sh)
- Declaring variables
- Using environment variables
- String and numeric variables
if,elif,else- Comparison operators
- File condition checks
forloopswhileloops- Loop control (
break,continue)
readcommand- Positional parameters (
$1,$2, etc.) - Special parameters (
$#,$@,$?)
- Creating, copying, moving, and deleting files
- Checking if files/directories exist
- Working with paths
- Exit codes
- Using
exit - Checking command success with
$?
Bash-Scripting/
│
├── scripts/
│ ├── hello_world.sh
│ ├── user_input.sh
│ ├── loops_example.sh
│ ├── conditionals.sh
│ └── file_operations.sh
│
└── README.md- Practice writing more complex automation scripts\
- Combine Bash with cron jobs\
- Explore advanced scripting concepts\
- Build real-world automation projects
This repository is primarily for learning purposes, but suggestions and improvements are welcome!
Documenting my journey through Bash scripting and automation.