Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk get mean

awk '{ sum += $2; n++ } END { if (n > 0) print sum / n; }'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #awk
ADD COMMENT
Topic
Name
2+8 =