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