Shell Scripting PART-02 || Exit status, Conditions, Functions || DevOps with AWS Training

  Рет қаралды 11,713

DevOps and Cloud with Siva

DevOps and Cloud with Siva

Күн бұрын

DevOps with AWS New Batch: 11-AUG-2024 Onwards
Timings: 07:45-09:15 PM IST
Register: tally.so/r/3jMKYJ
Website: www.joindevops...
Our website: www.joindevops...
GitHub: github.com/tec...
#devops #shellscripting #devopstraining #devopswithaws
I explained exit status, conditions, and functions in shell scripting. In the end, I took one example to use all these concepts practically
In shell scripting, exit status, conditions, and functions are essential concepts that allow you to create robust and efficient scripts.
The exit status is a value that is returned by a command or script when it finishes executing. It indicates whether the command or script was completed successfully or encountered an error. You can use the exit status in conditional statements to determine the flow of your script.
Conditions are used to check if a certain condition is true or false, and then execute certain commands based on the result. Conditional statements are typically written using if/then/else statements, and you can use them to make decisions in your script based on user input or the results of other commands.
Functions are blocks of code that can be reused throughout your script. They allow you to break down complex tasks into smaller, more manageable pieces of code. You can pass parameters to functions and return values from them. Functions make your code more modular and easier to maintain.
To use exit status, conditions, and functions in shell scripting, you first need to understand their syntax and how they work. Once you have a basic understanding, you can start incorporating them into your scripts to make them more efficient and powerful.

Пікірлер: 42
@Vicky12-p5y
@Vicky12-p5y 8 ай бұрын
Doubt sir Scenario 2 Jenkins installation Functions lo $1 and $2 thiskunaru . Enduku ala.. next doubt validate $? "Updating Yum" ekada updating Yum ela print avthundi. Valudate function lo "$2 ... Failure" print avachu ga ..??
@prasaddotcom
@prasaddotcom Жыл бұрын
Im getting hope because of you, i also can write shell scripting. Thanks a lot for your session.
@ravitejasindhu740
@ravitejasindhu740 8 ай бұрын
I am getting so much confidence and interest after watching your sessions. Thanks a lot
@kommanajay4329
@kommanajay4329 Жыл бұрын
Bro Jenkins master node fail ayithe yemavuthundhe and how to backup chepppu bro
@raveendraraveendra2274
@raveendraraveendra2274 Жыл бұрын
Hi Bro nice explanation i have one question regarding exit status. if the script is having minimal lines of code we can check the each command status using $? yes correct but if the script is having 20k+ lines of code so in that case it is difficult to write or check the exit status of each command so how we can overcome this problem?
@priyajanakiram8421
@priyajanakiram8421 Жыл бұрын
Tq so much anna 😊ur way of explaining is very understandable
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Please do practice 😊
@indiana9
@indiana9 Ай бұрын
Good video👌
@abhireddy8664
@abhireddy8664 Жыл бұрын
Bro SET -E vadochu kadha bro exit ki idhi long process kadha
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Yes explained that too. There we cannot get customised message, in background process is same
@prabhukumar6103
@prabhukumar6103 Жыл бұрын
Thnqs for the videos anna ur explanation and examples are superb anna😊
@rushikesh354
@rushikesh354 Жыл бұрын
make some more shall scripts bro
@vikaspasunuri278
@vikaspasunuri278 4 ай бұрын
best explanation on Shell Scripting thanks shiva reddy sir
@vijaykagitha9106
@vijaykagitha9106 Жыл бұрын
Anna oka aws devops best institute so suggest chai Anna . I want job quickly I have lot of financial problem please help me
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Quick ga ravali ante kudaradu bro, you need to learn properly joindevops.com
@vijaykagitha9106
@vijaykagitha9106 Жыл бұрын
If I practice daily 5 hours can I get a job in 3 months?
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
@@vijaykagitha9106 based on your focus and interest
@sandeepakulavenkata3182
@sandeepakulavenkata3182 Жыл бұрын
This is best scripting video, a real time task of Jenkins installation is real virtue of ur capability. Thanks Siva Sir.
@VIKRAMKUMAR-kt6kh
@VIKRAMKUMAR-kt6kh Жыл бұрын
sir i need to learn aws-devops from scratch will you help sir
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
joindevops.com
@harithavelisetti7547
@harithavelisetti7547 Жыл бұрын
U r better than raghu.......mere cheppochuga sir classes.....
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
No Hairtha. He has great knowledge and vast experience. No comparison. I cant commit for 3 months. My job is to influence more people and make them successful IT engineers
@kc-xw5wr
@kc-xw5wr Жыл бұрын
Raghu has immense knowledge on the subject he teaches. You can trust him blindly. Only thing you have to do is understand what he is teaching and just practice practice practice. You will become pro.
@harithavelisetti7547
@harithavelisetti7547 Жыл бұрын
@@kc-xw5wr kk
@pa1paves895
@pa1paves895 Жыл бұрын
Thank you Sir giving valuable information to us.........
@alurugnanasaisai1641
@alurugnanasaisai1641 Жыл бұрын
Can you teach the environment setup for Mac also
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Mac is super easy same as Linux, we can
@shrip9295
@shrip9295 Жыл бұрын
Anna teaching telugu lo untundaa Mee daggara
@raveendraraveendra2274
@raveendraraveendra2274 Жыл бұрын
Any update on below my ask
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Today's video will cover
@nageshmaragoni6339
@nageshmaragoni6339 Жыл бұрын
can't we use set -x set -e set -o Thank you for the classes.
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
We can. I wanted to tell that later. First I wanted to understand the manual validation and error handling
@nageshmaragoni6339
@nageshmaragoni6339 Жыл бұрын
@@DevOpsAndCloudWithSiva Iam also a learner. Thankyou ❤️
@vijaykothapalli2986
@vijaykothapalli2986 Жыл бұрын
You always super sir 🎉🎉🎉
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Thanks bro, complete practice
@bhoomikamgowda5237
@bhoomikamgowda5237 Жыл бұрын
Sir plz do vedio in English
@vinay4618
@vinay4618 Жыл бұрын
My motivation = shiva Bro
@bniranjan9899
@bniranjan9899 Жыл бұрын
Can you please do videos on linux
@DevOpsAndCloudWithSiva
@DevOpsAndCloudWithSiva Жыл бұрын
Ya later
@mr.harshavardhanlakkaraju803
@mr.harshavardhanlakkaraju803 Жыл бұрын
@@DevOpsAndCloudWithSiva Yes Sir Plz Do videos on Linux too
@venkatsai3264
@venkatsai3264 Жыл бұрын
You nailed it bro
@ashokreddy8936
@ashokreddy8936 Жыл бұрын
Part 0-0 unda bro...
Shell Scripting PART-03 | Logs, Colors, Output Redirections | DevOps Training
20:22
DevOps and Cloud with Siva
Рет қаралды 6 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,8 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 2 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 23 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 2,5 МЛН
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 58 М.
Public Key vs Private Key | SSH Authentication | DevOps Realtime Interview Questions
13:16
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,8 МЛН