BASH Scripting
SHELL
It is a program that can be served as an interface for an O.S. eg : C Shell, Corn Shell, Bourne Shell
## BASH (Bourne Again Shell)
Steps to create a bash shell:
Note : Extension : .sh
Step 1 : create a new empty file.sh
Step 2 : #!/bin/bash -->Shebang
Step 3 :- chmod +x file.sh
Step 4 :- ./file.sh --> Run
Step 5 :- # is used as comments
- Adding #!/bin/bash as the first line of your script ,tells the OS to invoke the specified shell to execute the commands that follow in the script . #! is often referred to as a "hash-bang" , "she-bang" or "sha-bang" .It just defines the type of scripting we want .
Program 1:

output :

Operators
Integer Comparison
- q --> equal to
- e --> is not equal to
- t --> is greater than
- e --> greater than or equal to
- t --> less than or equal to
- < --> is less than
- <= --> is less than or equal to
if-else loop


Nested if- else loop


Note : $1 here represent the argument that we pass during executing the program
For loops


While loops


Until Loops


Password generator

