UNIX or Linux code

heres the code for the first problem in case anyone wanted to see how its done

#!/bin/ksh

current_high=$1
current_low=$1
sum=0
for arg;do
sum=$(($sum+$arg))
if [ $current_high -lt $arg ] ; then
   current_high=$arg
fi

if [ $arg -lt $current_low ] ; then
   current_low=$arg
fi

done
avrg=$(($sum/$#))
print "Highest Number: "$current_high
print "Lowest Number: "$current_low
print "Sum of the numbers: "$sum
print "Average of the numbers: "$avrg