Is it possible in AIX to use the expr command to add a column of numbers? I have used the cut command to pull the amounts to an output file. For example my output file would show:
ok, never mind my original post - I think it's a problem with the awk version on AIX. It works correctly on Solaris nawk and with the POSIX compliant awk on SOlaris as well.
just curious, WHY do you need to distiguish positives from negatives? If you don't, the original awk script gives the correct aggregation [at least under Solaris' 'nawk'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.