A collection of shell scripts for assignment tasks, written in Bash.
/ ├── AQ1.sh
├── AQ2.sh
├── AQ3.0.sh
├── AQ3.sh
├── AQ4.sh
├── AQ5.sh
├── AQ6.sh
├── AQ7.sh
├── AQ8.sh
├── data.txt
├── hello.txt
├── emptyfile
└── README.md
markdown Copy code
AQ1.shtoAQ8.sh— shell script solutions for assignment questionsdata.txt,hello.txt— data/input files used by scriptsemptyfile— an empty file (used maybe for testing or as placeholder)README.md— this file
Below is a summary of each script and how to run or test it.
| Script | Description | Usage / Example |
|---|---|---|
AQ1.sh |
[Brief description: e.g. “script for task 1 — …”] | bash AQ1.sh [args] |
AQ2.sh |
[Task 2] | bash AQ2.sh [args] |
AQ3.0.sh |
[Alternate version or subtasks of 3] | bash AQ3.0.sh [args] |
AQ3.sh |
[Main version of task 3] | bash AQ3.sh [args] |
AQ4.sh |
[Task 4] | bash AQ4.sh [args] |
AQ5.sh |
[Task 5] | bash AQ5.sh [args] |
AQ6.sh |
[Task 6] | bash AQ6.sh [args] |
AQ7.sh |
[Task 7] | bash AQ7.sh [args] |
AQ8.sh |
[Task 8] | bash AQ8.sh [args] |
(Replace the “Description” and usage with specifics after you review what each does.)
- Make sure the scripts are executable:
chmod +x AQ*.sh
Run a script:
bash Copy code ./AQ1.sh
bash AQ1.sh [parameters] If a script reads from a data file, put or reference the file in same folder (e.g. data.txt, hello.txt).
📂 Data Files & Inputs data.txt — contains sample data used by some scripts
hello.txt — another sample input
emptyfile — empty placeholder
ℹ️ Notes & Tips All scripts are written in Bash.
Use #!/bin/bash (shebang) at the top of each script to ensure correct interpreter.
Add comments inside each script for clarity (what each section does).
Use redirection (>, >>) if scripts output to files.
Handle error cases (file not found, invalid inputs) gracefully.
✅ How to Contribute / Extend You can add more scripts named AQ9.sh, etc.
If scripts depend on new data files, place them in the repo root or a subfolder (e.g. data/).
Update this README with new entries in the “Scripts Overview” table.
📜 License / Attribution (If required, add license, your name, date, etc.)
Feel free to copy-paste this into your README.md, then fill in the Description and Usage parts by opening each .sh script and reading what it does.
If you like, I can also generate the exact README for your repo (with descriptions of each script) by me reviewing the code in .sh files. Do you want me to do that?# shell-script-assignment