Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

YGOR

Status
Not open for further replies.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top