I am trying to write a command procedure to compute the sum from 1 squared to $i squared. I am very new to Unix, & trying to teach myself. Here is what I have, and it does not work:
for $i -lt 1
sum='expr $sum +'$i'*'$i'
I don't know how to ask the user for the i variable or if I am declaring them right???
Be nice I'm a Unix newbie...