Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 173 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,174 @@
# Shell
Schell Scripts

A lightweight collection of useful shell scripts and command-line utilities designed to automate everyday tasks, streamline workflows, and boost productivity.

---

## 🚀 Features

* Simple and easy-to-use shell scripts.
* Automation for repetitive tasks.
* Beginner-friendly structure.
* Lightweight and fast.
* Easy to customize and extend.

---

## 📂 Project Structure

```bash
Shell/
├── scripts/
│ ├── script1.sh
│ ├── script2.sh
│ └── ...
├── README.md
└── LICENSE
```

---

## ⚙️ Prerequisites

Before running the scripts, make sure you have:

* Linux / macOS / WSL
* Bash or compatible shell
* Basic terminal knowledge

Check your bash version:

```bash
bash --version
```

---

## 🛠️ Installation

Clone the repository:

```bash
git clone https://github.com/AnirbanB13/Shell.git
cd Shell
```

Give execution permission to scripts:

```bash
chmod +x *.sh
```

Or for all scripts inside folders:

```bash
find . -name "*.sh" -exec chmod +x {} \;
```

---

## ▶️ Usage

Run any script using:

```bash
./script-name.sh
```

Or:

```bash
bash script-name.sh
```

Example:

```bash
./backup.sh
```

---

## 📌 Example Use Cases

* File backup automation.
* Log cleanup.
* Docker/container helpers.
* DevOps utilities.
* Git automation.
* System monitoring.
* AWS/Linux administration tasks.

---

## 🧠 Learning Goals

This repository is also intended as a hands-on learning space for:

* Shell scripting
* Linux command-line tools
* Automation concepts
* DevOps fundamentals
* Scripting best practices

---

## 🔒 Permissions Note

If you encounter permission issues:

```bash
chmod +x filename.sh
```

---

## 🤝 Contributing

Contributions, suggestions, and improvements are welcome.

1. Fork the repository
2. Create a new branch
3. Commit your changes
4. Push to your branch
5. Open a Pull Request

---

## 🐞 Troubleshooting

### Script not running?

Make sure:

* The script has executable permissions
* Bash is installed
* You are running from the correct directory

### Command not found?

Install the required package or dependency mentioned in the script.

---

## 📖 Future Improvements

* Add more automation scripts
* Improve error handling
* Add logging support
* Add interactive menu system
* Add configuration support

---

## 📜 License

This project is licensed under the MIT License.

---

## 👨‍💻 Author

Created by Anirban Banerjee.

GitHub: [AnirbanB13 GitHub Profile](https://github.com/AnirbanB13?utm_source=chatgpt.com)
5 changes: 5 additions & 0 deletions addition.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
read -p "enter first number: " num1
read -p "enter second number: " num2

sum=$((num1 + num2))
echo "The sum of $num1 and $num2 is: $sum"
3 changes: 3 additions & 0 deletions author.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

# just a placeholder file to run all the arithmetic operations in one go. This file is not meant to be executed directly, but rather to be sourced by test.sh which will call each of the individual operation scripts.
6 changes: 6 additions & 0 deletions multiplication.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
read -p "enter first number: " num1
read -p "enter second number: " num2

product=$((num1 * num2))

echo "The product of $num1 and $num2 is: $product"
7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Test script to run all arithmetic operations
bash addition.sh
bash multiplication.sh
bash substraction.sh
bash division.sh