Skip to content

Instantly share code, notes, and snippets.

@mynameisfiber
Created August 22, 2012 14:31
Show Gist options
  • Save mynameisfiber/3426140 to your computer and use it in GitHub Desktop.
Save mynameisfiber/3426140 to your computer and use it in GitHub Desktop.
paste example
$ sort -m country.decodes.2012-07-* | grep -v "(null)" | uniq -c | sort -n > country.count
$ cat country.count.norm | column -t -c1 | cut -f1 -d" " | paste -sd+ | bc | xargs -I{} awk '{if ($1/{} > .001) {print $1/{} " " $2}}' country.count.norm | sort -n | column
$ #tl;tr?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment