Last active
September 21, 2015 18:43
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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