#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    London
    Posts
    86
    Rep Power
    13

    how do you calculate in awk???


    hello people,

    Im having real problems trying to add up a total in awk??

    I can get a total at the bottom of the line in column $2 but how would i get it so that i get a sub total say half way down??

    can anyone help, ive tried looking in the manual pages but cant seem to find anything...

    Thankyou in advanced
    Jeffers
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> i get a sub total say half way down??

    Use head first, then pipe to awk. man head to find out more.

IMN logo majestic logo threadwatch logo seochat tools logo