Hacker News new | past | comments | ask | show | jobs | submit login

Hey man, how did you know ??

My patented uniques metric: cat access.log | awk -F " " '{ print $1 }' | sort | uniq | wc -l




Do you know about cut? You can replace awk here.

cut -d ' ' -f 1


Along the lines of lincolnq's comment: |sort |uniq can be shrunk to |sort -u




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: