Shell Scripting Tutorial for Beginners in Hindi | Variables, User Input & Arguments | Episode 02 🚀

Shell Scripting Tutorial for Beginners in Hindi | Episode 02

Welcome back to the Shell Scripting Series!

In Episode 2, we’ll learn how to make our Bash scripts more dynamic and interactive using variables, user input, and command-line arguments.

Instead of writing scripts with fixed values, we’ll learn how to accept user input, store information, perform calculations, and build practical automation scripts using Ubuntu on WSL.

📚 What You’ll Learn in This Episode:

✅ Variables in Shell Scripting
✅ Rules for Naming Variables
✅ Using Variables with `echo`
✅ Taking User Input with `read`
✅ Building an Interactive Greeting Script
✅ Special Variables in Bash (`$USER`, `$HOME`, `$?`)
✅ Command-Line Arguments (`$1`, `$2`, `$#`)
✅ Arithmetic Operations in Bash
✅ Single Quotes vs. Double Quotes
✅ Practical Project: Build a `user-info.sh` Script

💻 Hands-on Practice

In this episode, we’ll create a practical script that asks for your name and city, displays a personalized welcome message, and shows useful system information.

📝 Homework Challenge

Create a `student-info.sh` script that:
– Takes the student’s name, age, and course as input.
– Displays a formatted student summary.
– Shows the current Linux username.

🎯 Try solving the challenge yourself and share **DONE** in the comments when you complete it!

📌 Prerequisites:
– Basic Linux commands
– Ubuntu Linux or Ubuntu on WSL
– Episode 1 of the Shell Scripting Series

▶️ Watch Episode 1: https://youtu.be/CaM8N5EkP7Q

🔔 Subscribe for more tutorials on Shell Scripting, Linux, Bash, DevOps, and programming.

In the next episode, we’ll explore Conditions in Bash: `if`, `else`, and `elif`.

#ShellScripting #BashScripting #Linux #Ubuntu #ProgrammingInHindi #DevOps #CodingForBeginners