Skip to content

Instantly share code, notes, and snippets.

@joelvh
Created October 6, 2020 22:39
Show Gist options
  • Save joelvh/306bf998a08ce8123a2f54e3089ee0f0 to your computer and use it in GitHub Desktop.
Save joelvh/306bf998a08ce8123a2f54e3089ee0f0 to your computer and use it in GitHub Desktop.
# Parse out 404's and count them with `head`
grep '" 404' website.apachestyle.log* | cut -d'"' -f2 | sort | uniq -c | sort -nr | head
# Remove `head` to get all results
grep '" 404' website.apachestyle.log* | cut -d'"' -f2 | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment