this worked great, thanks a lot!
On Thu, 27 Jan 2000, Bret Hughes wrote:
> Try some thing like this
>
>
> #! /bin/sh
> # addnums - adds two numbers input as args and outputs the result
> newval=`expr $1 + $2`
> echo 'the sum of ' $1 ' and ' $2 ' is ' $newval
>
>
> Jeff Smelser wrote:
> >
> > Just trying to write a bash script and can't seem to figure out how to
> > do addition with variables. If someone could give me a quick example, I
> > would appreciate it. Thanks
> >
> > --
> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.