the question in the lab of shell scripting is:: [ Create a shell script in the home directory called check_greater.sh
. The script should check the greater of the two command line arguments $1
and $2
and print whichever is greater ]
and my answer is as follows::
[ **
if (( $1 > $2 )); then
** echo “$1”
else
** echo “$2”
fi
** ]**** but the terminal attached to the lab shows it’s incorrect when i run bash check_greater.sh 3 12, what’s the issue ??