From d7761bfc638a629357e679c65311789bba092567 Mon Sep 17 00:00:00 2001 From: inadez Date: Thu, 10 Nov 2022 15:26:05 -0600 Subject: [PATCH] new info added to files or directories --- hello.sh | 16 +++++++++++++--- if_statement_1.sh | 6 +++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/hello.sh b/hello.sh index d7e7b11..c78a865 100755 --- a/hello.sh +++ b/hello.sh @@ -1,8 +1,18 @@ #!/bin/bash #Author : Utrains - #Date : 01-Nov-2021 + #Date created : 01-Nov-2021 + #Date modified: 06-NOV-2022 +## ---------- script that display hello world in the screen ----------------- -## ---------- script that display hello word in the screen ----------------- +echo "Hello World !" +#sleep 3 +echo "Hello Desiree! How are you today?" +#sleep 3 +echo "What can I do for you today?" +#sleep 3 +pwd +#sleep 3 +echo "Your kernel version is" +uname -r -echo "Yello Word !" \ No newline at end of file diff --git a/if_statement_1.sh b/if_statement_1.sh index bacb701..1392718 100755 --- a/if_statement_1.sh +++ b/if_statement_1.sh @@ -4,11 +4,11 @@ #Author : Utrains #Date : 01-Nov-2021 -## ---------- If statement allow you to check specific condition ----------------- +## ---------- If statement allows you to check specific conditions ----------------- -# ------You can use tabulation ti indent your code for better visibility ------------ +# ------You can use tabulation to indent your code for better visibility ------------ yum install finger -y -if [$? -eq 0] # --> this line check if the previous command work well +if [$? -eq 0] # --> this line check if the previous command works well then echo "Finger installed successfully" else