May 19, 2003 #1 UCF87 Technical User Feb 13, 2003 44 US If all of your input fields end with either '+' or '-' then... awk '{e=substr($1,length($1)) $1;sum+=e}END{print sum}' <file1 YGor Would there be a reason why if the amount is over 6 figures I do not get the cents? XX,XXX.xx XXX,XXX
If all of your input fields end with either '+' or '-' then... awk '{e=substr($1,length($1)) $1;sum+=e}END{print sum}' <file1 YGor Would there be a reason why if the amount is over 6 figures I do not get the cents? XX,XXX.xx XXX,XXX