Bash Shell Scripting:- Lesson 7,8 &9 for DevOps Engineers.

Bash Shell Scripting:- Lesson 7,8 &9 for DevOps Engineers.

Dear Learners, In Today Topic, We will learn the Shell Scripting form Basics to Advanced for DevOps Engineers.

Course Content:

Lesson 7:- Bash Shell Scripting Nested IF Condition in Shell Script.

Lesson 8:- Bash Shell Scripting Using Logical and Operator in Shell Script.

Lesson 9:- Bash Shell Scripting Using Logical OR Operator in Shell Script.

IMP We are Dividing the Terminal in 2 Parts Right Side Script Execution and Left Side Write a bash file with Syntax.

Lesson 7:- Bash Shell Scripting Nested IF Condition in Shell Script.

Nested IF function means one if function inside the another allows you to multiple criteria and increase the Number of possible outcomes.

Let us discuss with the help of practical:-

To check the file is available or not:-

output:- does not exist

To check the file is available or not:-

To check if file is available in system and Append the Text.

To check if file is available in system and Append the Text Diagram.

Lesson 8:- Bash Shell Scripting Using Logical AND Operator in Shell Script.

Logical AND Operator in shell operator:-

If the both conditions are high and the equal to each other we will get the output for ex:- 1 = 1

if the age is not valid

if the age is not valid Diagram.

Lesson 9:- Bash Shell Scripting Using Logical OR Operator in Shell Script.

In this lecture we will discuss the logical OR operator how to implement in shell scripting to define the different different conditions.

for example:- compare the the 2 commands:-

for example:- compare the the 2 commands Diagraml

Let us discuss with the help of Script:-

if the age is less than 18 || greater than 40 diagram

Another Method You are Execute the Script with the help -o with single Quotes.

Another Method You are Execute the Script with the help -o with single Quotes Diagram.

Hope I helped you in understanding the concept in a better way!!

Happy Learning !!

shubhlaxmi shukla

CKA certified | REDHAT OPENSTACK Certified |GCP-Associate cloud engineer certified| Docker | kubernetes | AzureDevOps | AWS | Linux | ansible | cicd | jenkins | terraform | Grafana | GIT |GITHUB

1y

Thanks for sharing Maninder Singh

Maninder Singh

AWS || Huawei || Cloud || Docker || Mentor & Tutor || System Engineer Antier Solution

1y

++

Like
Reply

To view or add a comment, sign in

Explore topics