Skip to content

Instantly share code, notes, and snippets.

@isovector
Created November 19, 2012 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isovector/4113638 to your computer and use it in GitHub Desktop.
Save isovector/4113638 to your computer and use it in GitHub Desktop.
add up socket log lengths
awk 'match($0,/\([0-9]+\)/){ sum += substr($0,RSTART+1,RLENGTH-2) } END { print sum }' sockets.shandy2.raw.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment