"Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When quoting parts of a script or error messages, please be > accurate (cut and paste rather than retyping). You used: > > temp=`expr $val1 + $val2` > > or you wouldn't have received that error. The line you have would > have assigned the literal value to $temp. >
Oh those were meant to be single quotes. temp='expr $val1 + $val2' > What are the values of $val1 and $val2? Use this command to see > them: > > printf ":%s:%s:\n" "$val1" "$val2" > > What is the result of: > > echo $(( $val1 + $val2 )) > > What command did you use to fill those variables? > Those lines didn't seem to print out anything unforunately It prints out values when I simply type the variable name though. The variable holds the following: val1='cut -c8-9 usrTime' val2='cut -c7-8 sysTime' _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash