Y
Hacker News
new
|
ask
|
show
|
jobs
by
woud420
3698 days ago
For next time you don't want to have to copy and paste. No need for SED.
cat <file> | cut -d ' ' -f1 | sort | uniq -c | sort -nr
2 comments
jnpatel
3697 days ago
I'd suggest replacing the use of cat with:
tail -n 10000 apache.log
link
xlucas
3697 days ago
no need for cat
link
woud420
3697 days ago
You're correct, force of habit.
link