Skip to content

Instantly share code, notes, and snippets.

View turbcool's full-sized avatar
😃

Ilya Naydanov turbcool

😃
View GitHub Profile
@mwinters0
mwinters0 / gist:c70d195c5c5670d1625f
Created November 10, 2014 19:43
Shell one-liner to parse apache access logs and extract a unique URL list with hit count, querystring excluded.
cat access.log | awk -F\" '{print $2}' | awk '{print $2}' | sed '/^$/d' | sed 's/\?.*//g' | sort | uniq -c | sort -rn > url_hits.txt