Day 4: Shell Scripting for DevOps Engineer

What is Shell Scripting?

Shell scripting is a technique in which a programmer writes a series of commands for the shell to execute.

Shell scripting is used to automate the process of provisioning and configuring a new server, installing the necessary software and setting up security.

The commands in shell scripting are written in a script file and can be executed by the shell. usually, Bash, to perform the desired tasks.

What is #! /bin/bash ?

The "#!/bin/bash" is called a shebang and it is a special type of comment that is used to specify the interpreter that should be used to execute a script.

Shebang is a way to specify that the script should be executed by the Bash shell.

Write a Shell Script that prints “I will complete #90DaysofDeVops challenge”

Write a Shell Script to take user input, input from arguments, and print the variables.

Write an Example of If else in Shell Scripting by comparing two numbers