Building a CLI Quiz App with Bash and JSON

“Bash is only for basic scripts.” That’s what I used to think. Until I tried building something real with it. 💻 So I built a CLI Quiz App using Bash. At first, it felt simple… But things got interesting when I tried to: 🔹 Load questions from a JSON file 🔹 Randomize them every time using $RANDOM 🔹 Show MCQs in the terminal 🔹 Validate answers correctly (this part broke a few times 😅) And that’s where the real learning happened. 🚀 What this project does: ✔️ Dynamically loads questions ✔️ Random question selection ✔️ Interactive MCQ system in terminal ✔️ Instant feedback on answers 🛠️ Tech Used: Bash scripting jq (for parsing JSON) Ubuntu/Linux 💡 Biggest realization: You don’t really learn tools like Git or Bash by watching tutorials… You learn when things break — and you fix them. 🔗 GitHub: https://lnkd.in/gSgmiX5v 📌 What I’ll improve next: Score tracking Timer-based quiz Better user experience If you’ve ever struggled with Git, Bash, or CLI tools — you’re not alone. We all start messy. We improve by building. Utkarsh Agarwal Gunjan Saini Charu Jain SAMI ANAND Dr. Harpal Thethi Lovely Professional University Xebia #Linux #Bash #GitHub #CodingJourney #Developers #lpu #xebia

  • text

This is excellent; great to see you put Bash into a real, well-structured CLI tool. Nice use of jq and clean modularisation💯 Next step: strengthen edge case handling and add features like scoring or timers to take it to the next level ⛏️

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories