diff --git a/Script1.sh b/Script1.sh deleted file mode 100644 index 970b10cc..00000000 --- a/Script1.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -#This is my 1st shell script to print output -echo "Hello All, Welcome to AWS/Devops Class" -echo "Hello, How are you?" diff --git a/Script11.sh b/Script11.sh index d810876d..3d6c1eba 100644 --- a/Script11.sh +++ b/Script11.sh @@ -16,3 +16,5 @@ then else echo "None of the condition met" fi + +echo "I have changed this branch" diff --git a/Script12.sh b/Script12.sh index d75af12d..1bca0b03 100644 --- a/Script12.sh +++ b/Script12.sh @@ -1,24 +1,4 @@ #!/bin/bash -#this script is for if-elif-fi -echo "Please enter value of a" -read a -echo "Please enter vaule of b" -read b -if [ $a == $b ] -then - echo "a is equal to b" -elif [ $a -gt $b ] -then - echo "a is greater than b" -elif [ $a -lt $b ] -then - echo "a is less than b" -else - echo "None of the condition met" -fi -root@ip-172-31-42-137:~/scripts/shellscripts# ^C -root@ip-172-31-42-137:~/scripts/shellscripts# cat script12.sh -#!/bin/sh a="abc" b="efg" @@ -26,7 +6,7 @@ if [ $a = $b ] then echo "$a = $b : a is equal to b" else - echo "$a = $b: a is not equal to b" + echo "$a != $b: a is not equal to b" fi @@ -34,7 +14,7 @@ if [ $a != $b ] then echo "$a != $b : a is not equal to b" else - echo "$a != $b: a is equal to b" + echo "$a = $b: a is equal to b" fi diff --git a/Script13.sh b/Script13.sh index 958a0150..2a534ecf 100644 --- a/Script13.sh +++ b/Script13.sh @@ -9,7 +9,7 @@ if [ $a != $b ] then echo "$a != $b : a is not equal to b" else - echo "$a != $b: a is equal to b" + echo "$a = $b: a is equal to b" fi if [ $a -lt 100 -a $b -gt 15 ] diff --git a/Script18.sh b/Script18.sh index 4b6ab654..75b16ad8 100644 --- a/Script18.sh +++ b/Script18.sh @@ -8,3 +8,4 @@ number_two () { } # Calling function one. number_one + # calling fuction \ No newline at end of file diff --git a/Script19.sh b/Script19.sh new file mode 100644 index 00000000..cc4cf194 --- /dev/null +++ b/Script19.sh @@ -0,0 +1 @@ +new script diff --git a/Script2.sh b/Script2.sh index d507e753..0079f3d0 100644 --- a/Script2.sh +++ b/Script2.sh @@ -5,4 +5,4 @@ read a echo "Value of b" read b echo "Hello value of a is $a and value of b is $b" -echo "This is sample change" +echo "Do you understand the script?" diff --git a/Script3.sh b/Script3.sh index 86042123..af53ec6e 100644 --- a/Script3.sh +++ b/Script3.sh @@ -1,6 +1,6 @@ #!/bin/bash #this is to check if the shell scripts picks up env variables -echo "This is error script" +echo "This is error script" # sample script echo "This is my system path $PATH" #Set a JDK_HOME env variable diff --git a/Script4.sh b/Script4.sh index c016e2bf..750866a3 100644 --- a/Script4.sh +++ b/Script4.sh @@ -1,6 +1,6 @@ #!/bin/bash #This is creation and calling of shell variable --- defining variables Class=Young-minds -Batch=13 -PROFESSION=AWS/DevOps +Batch=25 +PROFESSION=AWS/DevSecOps/Azure DevOps echo "Class Name is $Class, Batch number $Batch, We are learning $PROFESSION" diff --git a/Script7.sh b/Script7.sh index c43b48f6..8c572717 100644 --- a/Script7.sh +++ b/Script7.sh @@ -3,3 +3,8 @@ ls -lrt echo $? echo "here if the value is 0 this command is sucessful" +echo "I am learning github" +echo "I am learning devops" +echo "I am learning AWS" +echo "I am learning Jenkins tool" +echo "We are Selecting you for This Role" diff --git a/Script8.sh b/Script8.sh index 3d246692..c8a713cf 100644 --- a/Script8.sh +++ b/Script8.sh @@ -27,3 +27,4 @@ then else echo "None of the condition met" fi + diff --git a/script1.sh b/script1.sh new file mode 100644 index 00000000..6d9cf9ad --- /dev/null +++ b/script1.sh @@ -0,0 +1,5 @@ +echo "We are trying this practical from linux EC2" +echo "We are from batch-25 and learning git/github" +echo "good morning" +echo "We are Selecting for this role" +echo "Nice Job" diff --git a/shellscripts b/shellscripts new file mode 160000 index 00000000..9051ad10 --- /dev/null +++ b/shellscripts @@ -0,0 +1 @@ +Subproject commit 9051ad104a2613513bd560014ca9918812ba6b59