Bash Scripting

Sharing is caring

Views: 8

Bourne Again Shell

The main difference between scripting and programming languages is that we don’t need to compile the code to execute the scripting language, as opposed to programming languages.

Structure of Scripting Language

Input & Output
Arguments, Variables & Arrays
Conditional execution
Arithmetic
Loops
Comparison operators
Functions

Script Execution

#Bash
bash script.sh <optional arguments>

#sh
sh script.sh <optional arguments>

#
./script.sh <optional arguments>