linuxjunk
Friday, July 30, 2010
Quick and Dirty histogram in awk
awk '{histogram[int(($2*100)/100)]++;}END{for (i in histogram) { print i, histogram[i] }}' somerandomfilewithatagandcountdataincol2 | sort -n -k 1 > hist
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment