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 if file is available in system and Append the Text.
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
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:-
Let us discuss with the help of Script:-
Another Method You are Execute the Script with the help -o with single Quotes.
Hope I helped you in understanding the concept in a better way!!
Happy Learning !!
CKA certified | REDHAT OPENSTACK Certified |GCP-Associate cloud engineer certified| Docker | kubernetes | AzureDevOps | AWS | Linux | ansible | cicd | jenkins | terraform | Grafana | GIT |GITHUB
1yThanks for sharing Maninder Singh
AWS || Huawei || Cloud || Docker || Mentor & Tutor || System Engineer Antier Solution
1y++