Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
spudlyo
on June 5, 2009
|
parent
|
context
|
favorite
| on:
Useful command-line scripts for web developers (or...
I sometimes in interviews I ask how to find the top 10 IP addresses that have hit a web host in the last thousand hits.
tail -1000 access.log | cut -d' ' -f1 | sort | uniq -c | sort -rn | head
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
tail -1000 access.log | cut -d' ' -f1 | sort | uniq -c | sort -rn | head