Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Scripting Basics 🚀

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 Structure

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

🛠 How to Run

chmod +x filename.sh
./filename.sh

About

A beginner-friendly Bash scripting repository with 19+ examples covering variables, loops, conditionals, arrays, user input, file reading, and more perfect for learning shell scripting basics from scratch.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages