Skip to content

Instantly share code, notes, and snippets.

@iammart
Created February 24, 2015 09:57
Show Gist options
  • Save iammart/32c4b8a463f2b2790916 to your computer and use it in GitHub Desktop.
Save iammart/32c4b8a463f2b2790916 to your computer and use it in GitHub Desktop.
Sum of awk column output in MB
zcat xxxx-Jan-2015.gz | grep autodiscover | awk '{ SUM +=$10 } END { print SUM/1024/1024 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment