Welcome to athrocks' Bash Scripting Repository! This collection of scripts is designed to help beginners learn the fundamentals of Bash programming step-by-step. Each file demonstrates a specific concept or construct used in shell scripting.
| File Name | Description |
|---|---|
01_basic.sh |
Basic script structure and syntax |
02_comments.sh |
How to add comments in Bash scripts |
03_variables.sh |
Using and assigning variables |
04_constants_var.sh |
Constants and readonly variables |
05_arrays.sh |
Defining and using arrays |
06_stringOperation.sh |
Basic string operations in Bash |
07_readUser_Input.sh |
Reading input from the user |
08_01_arithmeticOp.sh |
Arithmetic operations using expr |
08_02_arithmeticOp.sh |
Arithmetic operations using let and $(( )) |
09_if_else.sh |
Conditional execution using if-else |
10_elif.sh |
Using elif for multiple conditions |
11_case_demo.sh |
Pattern matching with case statements |
12_forLoop.sh |
for loop basics |
13_Iterate_FILE.sh |
Iterating over lines in a file |
14_iterate_Array.sh |
Looping through arrays |
15_whileLoop.sh |
while loop basics |
16_untilLoop.sh |
Using until loop |
17_infiniteLoop.sh |
Creating an infinite while loop |
18_infinite_forLoop.sh |
Creating an infinite for loop |
19_readFile_whileLoop.sh |
Reading a file line-by-line using a while loop |
chmod +x filename.sh
./filename.sh