Skip to content

Instantly share code, notes, and snippets.

@jrumbut
Last active September 21, 2015 18:43
Show Gist options
  • Save jrumbut/58252669c8d9f88c9e6f to your computer and use it in GitHub Desktop.
Save jrumbut/58252669c8d9f88c9e6f to your computer and use it in GitHub Desktop.
Find duplicates in an Apache log file using bash (sorted, with counts, OSX compatible)
cat 404.log | awk '{print $2}' | sort | uniq -c | grep -v '^ *1 ' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment