Top 10 ips of your webserver logs
cat logfile | cut -d' ' -f 1 | sort | uniq -c | sort -n -r | head -10
Written by Gilles Devaux
Related protips
1 Response

I'd rather see some grep :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#