Skip to content

Instantly share code, notes, and snippets.

@mittenchops
Created February 4, 2014 20:45
Show Gist options
  • Save mittenchops/8811975 to your computer and use it in GitHub Desktop.
Save mittenchops/8811975 to your computer and use it in GitHub Desktop.
Count unique urls where url is the first field in a json, get the top 10 repeats
cat file.json | awk '{print $2}' | sort | uniq -c | sort -rn | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment