trying to write a shell script that will take any number of numerical parameters passed to it on the command line and perform addition on them...must be done in a "while" loop...have it so that it will add 2 numbers, also have it where it will print the correct sum for 1 or 0 parameters just cant get it to read more than two without hard coding the parameters (i.e. $1 + $2 + $3 . . . ) i think my prob is i am trying to attack it as an array but i cant seem to think of any other way to do it....going mad...slowly going mad.......help me please........... :eek:
nobius 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.