I'm trying to complete a script that will take 3 numbers from the command line and sum them, then display the output as "1 + 2 + 3 = 6". Here's the code I have:
clear
echo
for count
do
echo -n "$count + "
done
echo
echo
echo
echo All Done
I can make it output "1 + 2 + 3 +", but can't figure out how to get rid of the last plus or have the " = 6".