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

I'd suggest replacing the use of cat with:

    tail -n 10000 apache.log
no need for cat
You're correct, force of habit.