File tree Expand file tree Collapse file tree 15 files changed +29
-20
lines changed Expand file tree Collapse file tree 15 files changed +29
-20
lines changed Original file line number Diff line number Diff line change 5
5
# Modified Date:
6
6
# Author: Ankam Ravi Kumar
7
7
# START #
8
+
8
9
echo -e " Please enter some value: \c"
9
10
read -r a
10
11
echo -e " Please enter another value: \c"
Original file line number Diff line number Diff line change 7
7
# Author: Ankam Ravi Kumar
8
8
# START #
9
9
10
- echo " enter the a vloue $a "
10
+ echo -e " enter the a value: \c "
11
11
read a
12
- echo " enter the b volue $b "
12
+ echo -e " enter the b value: \c "
13
13
read b
14
14
if test " $a " -gt " $b " ; then
15
15
echo " $a is greater than $b "
16
16
else
17
- echo " $b is greater than $a "
17
+ echo " $b is greater than $a "
18
18
fi
19
19
20
20
# END #
Original file line number Diff line number Diff line change 5
5
# Modified Date:
6
6
# Author: Ankam Ravi Kumar
7
7
# START #
8
+
8
9
echo -e " Please Enter Maths Marks: \c"
9
10
read -r m
10
11
echo -e " Please Enter Physics Marks: \c"
Original file line number Diff line number Diff line change 6
6
# WebSite: https://arkit.co.in
7
7
# Author: Ankam Ravi Kumar
8
8
# START #
9
+
9
10
fruits=( " Apple" " Orange" " Banana" " Sapota" )
10
11
fruits[3]=' Green Apple'
11
12
for fruit in ${fruits[@]}
Original file line number Diff line number Diff line change 7
7
# Author: Ankam Ravi Kumar
8
8
# START #
9
9
10
- echo " WEL COME TO $USER "
10
+ echo " WEL COME TO $USERNAME "
11
11
echo " Your present working directory is ` pwd` "
12
12
echo " current logged in users are ` who` "
13
13
echo " Today date is ` date` "
Original file line number Diff line number Diff line change 9
9
10
10
tmp=` date | cut -c12-13`
11
11
if [ $tmp -lt 11 ] ; then
12
- echo " Good Mornind have a nice day $USER "
12
+ echo " Good Mornind have a nice day $USERNAME "
13
13
elif [ $tmp -gt 11 -a $tmp -lt 16 ] ; then
14
- echo " Good Ofter noon $USER "
14
+ echo " Good Ofter noon $USERNAME "
15
15
elif [ $tmp -gt 15 -a $tmp -lt 19 ] ; then
16
- echo " Good Evening $USER "
16
+ echo " Good Evening $USERNAME "
17
17
else
18
- echo " Good Night Sweet dreams $USER "
18
+ echo " Good Night Sweet dreams $USERNAME "
19
19
fi
20
20
echo " Now the time is ` date | cut -c12-19` "
21
21
Original file line number Diff line number Diff line change 5
5
# Modified Date:
6
6
# Author: Ankam Ravi Kumar
7
7
# START #
8
+
8
9
echo -e " Please Enter a Value: \c"
9
10
read -r a
10
11
echo -e " Please Enter b Value: \c"
Original file line number Diff line number Diff line change 6
6
# Website: https://arkit.co.in
7
7
# Author: Ankam Ravi Kumar
8
8
# START #
9
- echo -e " Enter any value> \c"
9
+ echo -e " Enter any value: \c"
10
10
read -r a
11
11
echo -e " Enter any value: \c"
12
12
read -r b
Original file line number Diff line number Diff line change 10
10
echo " Hi you there"
11
11
echo " what is your name? (Type your name here and press Enter)"
12
12
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 "
15
15
echo " your present working directory is ` pwd` "
16
16
17
17
# END #
Original file line number Diff line number Diff line change 7
7
# Modified by:
8
8
9
9
# START
10
- echo " Welcome $USER "
10
+ echo " Welcome $USERNAME "
11
11
echo " Your present working directory is ` pwd` "
12
12
echo " Today date is ` date` "
13
13
# END
You can’t perform that action at this time.
0 commit comments