Skip to content

Instantly share code, notes, and snippets.

@lindenb
Created July 13, 2017 16:04
Show Gist options
  • Save lindenb/a4b9e0f15702bb036efdaa81a6d33f66 to your computer and use it in GitHub Desktop.
Save lindenb/a4b9e0f15702bb036efdaa81a6d33f66 to your computer and use it in GitHub Desktop.
sort/uniq into gnuplot histogram
sort | uniq -c | sort -n | gnuplot -p -e "set key off; set ylabel 'Count'; set yrange [0:]; set title 'Sort-uniq'; set style data histogram;set terminal png truecolor; set term png; plot '-' using 1:xtic(2) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment