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