arg_cnt=$#
arg_list=$*
biggest=$1
if [ $arg_cnt -eq 0 ]; then
echo "$RF there should be minimum 1 argument"
exit 1
fi
for each_arg in $arg_list
do
if [ $each_arg -gt $biggest ]; then
biggest=$each_arg
fi
done
echo " Biggest number is : $biggest \n"
exit 0
Chat with our AI personalities
998.
program to find maximum of two numbers using pointers
88,888
874321 is the largest number made from all these digits.
998,000