Created
October 28, 2017 05:37
-
-
Save abhilater/1fa6e3ddd459d1feb78b5d259782f715 to your computer and use it in GitHub Desktop.
[unix snippets] #unix
This file contains 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
avg of a column | |
cat joom_12.txt | cut -d',' -f 3|cut -d')' -f 1 |awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment