http://imgur.com/a/kLG3fHello all,Im trying to write a script that will add any input numbers and return the sum. I have this part, here's the code:    sum=0    for number in $@;    do ((sum += number))    done    echo $sumNow I need it to do the rest that is attached in the image, but we only learned if statements and for loops two days ago, and I'm having trouble getting through this. I've tried all combinations I could think of, and I just end up getting frustrating errors.
How to pipe an echo command through grep when adding?
linux;shell script