Hello everyone,
I have this little for loop that I want to convert to a while loop. It accepts unknown number from the command line parameters and then add them all up and display the sum, here is the for loop:
sum=0
for x in $*
do
sum=`expr $sum + $argument`
done
echo $sum
it runs perfectly, any suggestions how to convert it to a while loop?
Thank you
Regards