[HPADM] Summary of awk queston

From: Buddy Mills (ramill@wm.edu)
Date: Tue Dec 02 2003 - 09:39:57 EST


Thanks to all who responded. To many to acknowledge all.
Quite a few different solutions but all said to use "printf" instead of print.

First solution I got back that worked was...

{ total += $1
}
END { printf("%.2f\n",total) }

Thanks

Buddy Mills
The College of William and Mary
ramill@wm.edu

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:37 EDT