tyrion

luglio2011p.awk

Jun 15th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # cat access.log | sort -k1 | awk -f luglio2011p.awk | sort -nr | column -t
  2. $1 != current { print sum, current; current = $1; sum = 0 }
  3.  
  4. { sub(/"[^"]*"/, ""); sum += $7 }
  5.  
  6. END { print sum, current }
Advertisement
Add Comment
Please, Sign In to add comment