Skip to content

Newton2025/BashCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 🐚 BashCode

Welcome to the **BashCode** repository! This project contains a collection of beginner-friendly Bash and Shell script programs for practicing basic logic, algorithm writing, and Linux command-line automation.

---

## 📂 What's Included?

Each script solves a common problem or performs a useful task in shell scripting:

- ✅ Factorial of a number
- ✅ Fibonacci series generation
- ✅ GCD and LCM calculation
- ✅ FCFS (First-Come-First-Serve) scheduling algorithm
- ✅ Word, line, and character count in files
- ✅ Even/Odd number checker
- ✅ More shell basics for practice

---

## 🧪 Sample File List

- `4-Write a program to find the factorial of a number`
- `5-Write a program to find the Fibonacci series`
- `6-Write a program to find the GCD and LCM`
- `7-Write a Shell script to find the number of odd and even numbers`
- `8-Write a Shell script to count the number of lines, words, and characters in a file`
- `9-Write a Shell script to check whether a number is even or odd`
- `30-Write a program to illustrate FCFS scheduling`

---

## 🚀 How to Run

1. Open a Linux terminal or WSL (on Windows).
2. Make the script executable:

```bash
chmod +x filename.sh
  1. Run the script:
./filename.sh

🎯 Who Should Use This?

  • 💻 Beginners learning Shell Scripting
  • 🎓 B.Tech/CS students doing OS/Linux assignments
  • 🧠 Interview preparation for Linux scripting rounds

🤝 Contributing

Want to add more scripts? Found an error? Contributions are welcome!

  1. Fork this repo
  2. Add your scripts
  3. Create a pull request

🧑‍💻 Author

Newton2025 📅 Last Updated: 7 months ago


⭐ Star this repo if you find it useful!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages