diff --git a/Arthemetic-Operators.sh b/Arthemetic-Operators.sh index 0957818..0a29f3f 100644 --- a/Arthemetic-Operators.sh +++ b/Arthemetic-Operators.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please enter some value: \c" read -r a echo -e "Please enter another value: \c" diff --git a/arkit.co.in-nested-if.sh b/arkit.co.in-nested-if.sh index 5be4b8d..17d421b 100644 --- a/arkit.co.in-nested-if.sh +++ b/arkit.co.in-nested-if.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter Maths Marks: \c" read -r m echo -e "Please Enter Physics Marks: \c" diff --git a/array.sh b/array.sh index ca7d6f8..7c61603 100644 --- a/array.sh +++ b/array.sh @@ -6,6 +6,7 @@ #WebSite: https://arkit.co.in #Author: Ankam Ravi Kumar # START # + fruits=( "Apple" "Orange" "Banana" "Sapota" ) fruits[3]='Green Apple' for fruit in ${fruits[@]} diff --git a/details.sh b/details.sh index 8a64338..cf701a3 100644 --- a/details.sh +++ b/details.sh @@ -7,7 +7,7 @@ #Author: Ankam Ravi Kumar # START # -echo "WEL COME TO $USER" +echo "WEL COME TO $USERNAME" echo "Your present working directory is `pwd`" echo "current logged in users are `who`" echo "Today date is `date`" diff --git a/hi.sh b/hi.sh index b0365ef..6652c64 100644 --- a/hi.sh +++ b/hi.sh @@ -9,13 +9,13 @@ tmp=`date | cut -c12-13` if [ $tmp -lt 11 ] ; then -echo "Good Mornind have a nice day $USER" +echo "Good Mornind have a nice day $USERNAME" elif [ $tmp -gt 11 -a $tmp -lt 16 ] ; then -echo "Good Ofter noon $USER" +echo "Good Ofter noon $USERNAME" elif [ $tmp -gt 15 -a $tmp -lt 19 ] ; then -echo "Good Evening $USER" +echo "Good Evening $USERNAME" else -echo "Good Night Sweet dreams $USER" +echo "Good Night Sweet dreams $USERNAME" fi echo "Now the time is `date |cut -c12-19`" diff --git a/if-elif-if.sh b/if-elif-if.sh index ee2e09b..da88e28 100644 --- a/if-elif-if.sh +++ b/if-elif-if.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter a Value: \c" read -r a echo -e "Please Enter b Value: \c" diff --git a/if-else-statement.sh b/if-else-statement.sh index 1393446..7e5b04f 100644 --- a/if-else-statement.sh +++ b/if-else-statement.sh @@ -6,7 +6,7 @@ #Website: https://arkit.co.in #Author: Ankam Ravi Kumar # START # -echo -e "Enter any value> \c" +echo -e "Enter any value: \c" read -r a echo -e "Enter any value: \c" read -r b diff --git a/info.sh b/info.sh index b32785c..caac61a 100644 --- a/info.sh +++ b/info.sh @@ -10,8 +10,8 @@ echo "Hi you there" echo "what is your name? (Type your name here and press Enter)" read NM -echo "Hi $NM Good Morning" -echo "your currently logged in as $USER" +echo "Hi $NM Good Morning" +echo "your currently logged in as $USERNAME" echo "your present working directory is `pwd`" # END # diff --git a/myfirstscript.sh b/myfirstscript.sh index ad53bc9..2c39c40 100644 --- a/myfirstscript.sh +++ b/myfirstscript.sh @@ -7,7 +7,7 @@ #Modified by: # START -echo "Welcome $USER" +echo "Welcome $USERNAME" echo "Your present working directory is `pwd`" echo "Today date is `date`" # END diff --git a/nestedif.sh b/nestedif.sh index 5be4b8d..17d421b 100644 --- a/nestedif.sh +++ b/nestedif.sh @@ -5,6 +5,7 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # + echo -e "Please Enter Maths Marks: \c" read -r m echo -e "Please Enter Physics Marks: \c" diff --git a/or-operator.sh b/or-operator.sh index 5a66bd7..2931df0 100644 --- a/or-operator.sh +++ b/or-operator.sh @@ -5,7 +5,8 @@ #Modified Date: #Author: Ankam Ravi Kumar # START # -echo -e "Enter First Numberic Value: \c" + +echo -e "Enter First Numeric Value: \c" read -r t echo -e "Enter Second Numeric Value: \c" read -r b @@ -13,7 +14,7 @@ read -r b if [ $t -le 20 -o $b -ge 30 ]; then echo "Statement is True" else -echo "Flase, Statement Try Again." +echo "False Statement, Try Again." fi # END # diff --git a/userexists.sh b/userexists.sh index da5e3c2..1b8dde7 100644 --- a/userexists.sh +++ b/userexists.sh @@ -5,7 +5,7 @@ ##WebSite: https://arkit.co.in ##Start -echo "Please Enter User name you want check:\c" +echo -e "Please Enter User name you want check: \c" read user grep $user /etc/passwd > /dev/null if [ $? -eq 0 ]; then diff --git a/variables.sh b/variables.sh index 7d765aa..7f3128d 100644 --- a/variables.sh +++ b/variables.sh @@ -6,6 +6,7 @@ #website: https://arkit.co.in #Author: Ankam Ravi Kumar # START # + A=10 Ba=23 BA=45