Day04 #90Daysof Devops

Hello Connections, hashtag#90daysofdevops

Day 04

What is #!/bin/bash? can we write #!/bin/sh as well?

Essentially it tells your terminal that when you run the script it should use bash to execute it

Write a Shell Script which prints I will complete #90DaysOofDevOps challenge

 #!/bin/bash 
echo "I will Complete #90 days of Devops "

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

#!/bin/bash

echo Hello, who am I talking to?
read varname
 echo its nice to meet you $varname

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

#!/bin/bash
m=1
n=2

if [ $n -eq $m ]
then
        echo "Both variables are the same"
else
        echo "Both variables are different"
fi

/Thank you TrainWithShubham 🙂
hashtag#devops hashtag#TrainWithShubham hashtag#90DaysofDevOps hashtag#DevOps hashtag#HappyLearnig