[HPADM] Summary of awk queston

From: Buddy Mills (ramill_at_wm.edu)
Date: 12/02/03

  • Next message: Abramson, Stuart: "[HPADM] Breaking up my $PATH into separate lines"
    To: <hpux-admin@dutchworks.nl>
    Date: Tue, 2 Dec 2003 09:39:57 -0500
    
    

    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)
    

  • Next message: Abramson, Stuart: "[HPADM] Breaking up my $PATH into separate lines"