Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fortitudepub/50857347f52beb68dd4dba0dd27f08eb to your computer and use it in GitHub Desktop.
Save fortitudepub/50857347f52beb68dd4dba0dd27f08eb to your computer and use it in GitHub Desktop.
awk scrit to sum column
cat xxx.txt | tr , ' ' | grep keepalive | awk '{ sum+=$1 } END {print sum/160}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment