Shell Scripting

Vishnu prasad
1 min readOct 2, 2021

The shell

Shell allows you by use of commands to interact with your computer hence retrieve or store data, process information and various other simple or even extremely complex tasks.

The Variables

Variables are the essence of programming. Variables allow a programmer to store data, alter and reuse them throughout the script.

Conditionals Statements

Conditionals allow the programmer to implement decision making within a shell script based on certain conditions or events.

If…….Else

Loops

Loops are looping constructs used to iterate through any given number of tasks until all items in a specified list were completed or predefined conditions were met. There are three basic loop types available to our disposal;

  1. For Loop
  2. While Loop
  3. Until Loop

Bash Arithmetics

Arithmetics in bash scripting will add another level of sophistication and flexibility to our scripts as it allows us to calculate numbers even with numeric precision.

  1. Expr command
  2. Let command
  3. Bc command

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

--

--