SH, BASH, KSH, CSH, ZSH
Our Choice - BASH
Reasons why bash
- BASH is default in RedHat Family OS.
- BASH is having features of SH, KSH, CSH
- In Redhat Family OS, SH and BASH are same.
.sh .bash
Extenstions are only for our understanding, usually we make .sh
as extention for shell scripting files
$ bash script.sh
$ sh script.sh
Only in RedHat family BASH and SH are same, If you are around another OS like Ubuntu then BASH and SH differs.
1. She-Bang & Comments
2. Print
3. Variables
4. Inputs
5. Functions
6. Redirectors , Quotes, Exit States
7. Conditions
8. Loops
9. SED Editor