Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐚 Bash Scripting

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.


📚 About This Repository

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

🎯 Learning Objectives Achieved

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

🛠 Topics Covered

1️⃣ Writing and Running Bash Scripts

  • Shebang (#!/bin/bash)
  • File permissions (chmod +x script.sh)
  • Executing scripts (./script.sh)

2️⃣ Variables

  • Declaring variables
  • Using environment variables
  • String and numeric variables

3️⃣ Conditional Statements

  • if, elif, else
  • Comparison operators
  • File condition checks

4️⃣ Loops

  • for loops
  • while loops
  • Loop control (break, continue)

5️⃣ User Input & Arguments

  • read command
  • Positional parameters ($1, $2, etc.)
  • Special parameters ($#, $@, $?)

6️⃣ File & Directory Management

  • Creating, copying, moving, and deleting files
  • Checking if files/directories exist
  • Working with paths

7️⃣ Error Handling

  • Exit codes
  • Using exit
  • Checking command success with $?

📂 Repository Structure (Example)

Bash-Scripting/
│
├── scripts/
│   ├── hello_world.sh
│   ├── user_input.sh
│   ├── loops_example.sh
│   ├── conditionals.sh
│   └── file_operations.sh
│
└── README.md

📈 Next Steps

  • Practice writing more complex automation scripts\
  • Combine Bash with cron jobs\
  • Explore advanced scripting concepts\
  • Build real-world automation projects

🤝 Contributions

This repository is primarily for learning purposes, but suggestions and improvements are welcome!


📌 Author

Documenting my journey through Bash scripting and automation.

test

About

Bash Scripting module

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages