1. Introduction to Scripting

Pre-requisite: Before you start scripting it is advised that you memorise the basic commands by heart and mind.
Note: Here we will cover shell scripting which we do in Unix Operating Systems.

Scripting is running/executing some sets of commands as per our requirement. It is mostly used for automating some tasks. Such as:

Before we proceed any further you must know what is variable and value.


How to deifine value to a variable:
Syntax:
variable="value"

Example:
filename="Winner-List.txt"

How to view/display value of a variable:
Syntax:
echo "$variable"

Example:
echo "$filename"

Practicle
[user1@localhost Folder]$ filename="Winner-List.txt"
[user1@localhost Folder]$ echo $filename
Winner-List.txt
[user1@localhost Folder]$ filepath="/home/user1/Folder/Winner-List.txt"
[user1@localhost Folder]$ echo "$filepath"
/home/user1/Folder/Winner-List.txt