From the command line. You are guaranteed that *nix will have awk. Never know if you'll have python.
Reply
Who am I?
Samat Jain is co-founder of a web services company based in his hometown, Rhombic Networks, LLC, where he currently serves as CTO, system administrator, and programmer.
If you like his site, please leave a comment on your favorite posting, or contact Samat and let him know!
your regex appears to be off.
Also, it is much easier to so something like:
awk '{ sum += $10 } END { print sum }' access_log
From the command line. You are guaranteed that *nix will have awk. Never know if you'll have python.