Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b3ef5e6

Browse files
Merge pull request #8 from FastFingertips/FOTV
Update while-loop.sh
2 parents b8003a2 + db20252 commit b3ef5e6

15 files changed

+29
-20
lines changed

‎Arthemetic-Operators.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#Modified Date:
66
#Author: Ankam Ravi Kumar
77
# START #
8+
89
echo -e "Please enter some value: \c"
910
read -r a
1011
echo -e "Please enter another value: \c"

‎agtb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
#Author: Ankam Ravi Kumar
88
# START #
99

10-
echo "enter the a vloue $a"
10+
echo -e "enter the a value: \c"
1111
read a
12-
echo "enter the b volue $b"
12+
echo -e "enter the b value: \c"
1313
read b
1414
if test "$a" -gt "$b" ; then
1515
echo "$a is greater than $b"
1616
else
17-
echo "$b is greater than $a"
17+
echo "$b is greater than $a"
1818
fi
1919

2020
# END #

‎arkit.co.in-nested-if.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#Modified Date:
66
#Author: Ankam Ravi Kumar
77
# START #
8+
89
echo -e "Please Enter Maths Marks: \c"
910
read -r m
1011
echo -e "Please Enter Physics Marks: \c"

‎array.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#WebSite: https://arkit.co.in
77
#Author: Ankam Ravi Kumar
88
# START #
9+
910
fruits=( "Apple" "Orange" "Banana" "Sapota" )
1011
fruits[3]='Green Apple'
1112
for fruit in ${fruits[@]}

‎details.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#Author: Ankam Ravi Kumar
88
# START #
99

10-
echo "WEL COME TO $USER"
10+
echo "WEL COME TO $USERNAME"
1111
echo "Your present working directory is `pwd`"
1212
echo "current logged in users are `who`"
1313
echo "Today date is `date`"

‎hi.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
tmp=`date | cut -c12-13`
1111
if [ $tmp -lt 11 ] ; then
12-
echo "Good Mornind have a nice day $USER"
12+
echo "Good Mornind have a nice day $USERNAME"
1313
elif [ $tmp -gt 11 -a $tmp -lt 16 ] ; then
14-
echo "Good Ofter noon $USER"
14+
echo "Good Ofter noon $USERNAME"
1515
elif [ $tmp -gt 15 -a $tmp -lt 19 ] ; then
16-
echo "Good Evening $USER"
16+
echo "Good Evening $USERNAME"
1717
else
18-
echo "Good Night Sweet dreams $USER"
18+
echo "Good Night Sweet dreams $USERNAME"
1919
fi
2020
echo "Now the time is `date |cut -c12-19`"
2121

‎if-elif-if.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#Modified Date:
66
#Author: Ankam Ravi Kumar
77
# START #
8+
89
echo -e "Please Enter a Value: \c"
910
read -r a
1011
echo -e "Please Enter b Value: \c"

‎if-else-statement.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#Website: https://arkit.co.in
77
#Author: Ankam Ravi Kumar
88
# START #
9-
echo -e "Enter any value> \c"
9+
echo -e "Enter any value: \c"
1010
read -r a
1111
echo -e "Enter any value: \c"
1212
read -r b

‎info.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
echo "Hi you there"
1111
echo "what is your name? (Type your name here and press Enter)"
1212
read NM
13-
echo "Hi $NM Good Morning"
14-
echo "your currently logged in as $USER"
13+
echo "Hi $NM Good Morning"
14+
echo "your currently logged in as $USERNAME"
1515
echo "your present working directory is `pwd`"
1616

1717
# END #

‎myfirstscript.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#Modified by:
88

99
# START
10-
echo "Welcome $USER"
10+
echo "Welcome $USERNAME"
1111
echo "Your present working directory is `pwd`"
1212
echo "Today date is `date`"
1313
# END

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /