Created
May 30, 2016 10:49
-
-
Save fortitudepub/50857347f52beb68dd4dba0dd27f08eb to your computer and use it in GitHub Desktop.
awk scrit to sum column
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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