From 744583ed3595a39b0452838875a747c2ab4bad90 Mon Sep 17 00:00:00 2001 From: AnirbanB13 Date: Sun, 17 May 2026 15:51:13 +0530 Subject: [PATCH 1/7] Contribution: Modularized the README.md with the shell intro and commands --- README.md | 174 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 173 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6345487..6041dbb9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,174 @@ # Shell -Schell Scripts + +A lightweight collection of useful shell scripts and command-line utilities built to automate everyday tasks, simplify workflows, and improve 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) \ No newline at end of file From 74b8d843efa69427c634918cb144c1bb171b6617 Mon Sep 17 00:00:00 2001 From: Anirban Banerjee <130964233+AnirbanB13@users.noreply.github.com> Date: Sun, 17 May 2026 16:53:20 +0530 Subject: [PATCH 2/7] Revise README for improved clarity and structure Updated wording for clarity and consistency in README. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6041dbb9..30b96b61 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # Shell -A lightweight collection of useful shell scripts and command-line utilities built to automate everyday tasks, simplify workflows, and improve productivity. +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 +* Simple and easy-to-use shell scripts. +* Automation for repetitive tasks. +* Beginner-friendly structure. +* Lightweight and fast. +* Easy to customize and extend. --- @@ -171,4 +171,4 @@ This project is licensed under the MIT License. Created by Anirban Banerjee. -GitHub: [AnirbanB13 GitHub Profile](https://github.com/AnirbanB13?utm_source=chatgpt.com) \ No newline at end of file +GitHub: [AnirbanB13 GitHub Profile](https://github.com/AnirbanB13?utm_source=chatgpt.com) From 298b28954574bb8e73a257582f1369bf8bab0170 Mon Sep 17 00:00:00 2001 From: Anirban Banerjee <130964233+AnirbanB13@users.noreply.github.com> Date: Sun, 17 May 2026 16:56:38 +0530 Subject: [PATCH 3/7] Format README and update example use cases Updated project structure section and formatted example use cases. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 30b96b61..8b396788 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A lightweight collection of useful shell scripts and command-line utilities desi --- -## 📂 Project Structure +## 📂 Project Structure ```bash Shell/ @@ -91,13 +91,13 @@ Example: ## 📌 Example Use Cases -* File backup automation -* Log cleanup -* Docker/container helpers -* DevOps utilities -* Git automation -* System monitoring -* AWS/Linux administration tasks +* File backup automation. +* Log cleanup. +* Docker/container helpers. +* DevOps utilities. +* Git automation. +* System monitoring. +* AWS/Linux administration tasks. --- From 751c9b3f05fbb816f8d5ddbd9afc917faadda7ee Mon Sep 17 00:00:00 2001 From: AnirbanB13 Date: Sun, 17 May 2026 18:25:11 +0530 Subject: [PATCH 4/7] first commit : added addition.sh file --- addition.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 addition.sh diff --git a/addition.sh b/addition.sh new file mode 100644 index 00000000..51c15085 --- /dev/null +++ b/addition.sh @@ -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" \ No newline at end of file From a6cfb6a176dfc8ce839bb667faf743dfc2437d18 Mon Sep 17 00:00:00 2001 From: AnirbanB13 Date: Sun, 17 May 2026 18:26:01 +0530 Subject: [PATCH 5/7] second commit : added multiplication.sh file --- multiplication.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 multiplication.sh diff --git a/multiplication.sh b/multiplication.sh new file mode 100644 index 00000000..19937924 --- /dev/null +++ b/multiplication.sh @@ -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" \ No newline at end of file From f2785fb1a6ef8775e315b029c63a539a770138c0 Mon Sep 17 00:00:00 2001 From: AnirbanB13 Date: Sun, 17 May 2026 18:40:43 +0530 Subject: [PATCH 6/7] added test.sh file --- test.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test.sh diff --git a/test.sh b/test.sh new file mode 100644 index 00000000..de5ec9e9 --- /dev/null +++ b/test.sh @@ -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 \ No newline at end of file From 46f534ab650a278c4070fdbaf282bf96c27235c7 Mon Sep 17 00:00:00 2001 From: AnirbanB13 Date: Sun, 17 May 2026 18:42:08 +0530 Subject: [PATCH 7/7] added test file --- author.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 author.sh diff --git a/author.sh b/author.sh new file mode 100644 index 00000000..f00b7748 --- /dev/null +++ b/author.sh @@ -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. \ No newline at end of file