← Learn
Safe
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head

linux · bash · Expert

Counts the most frequent client addresses in a web access log. It is a four-stage pipeline, which looks complex, but every stage is a text filter and the final destination is your terminal rather than an interpreter.

Think you can spot these under time pressure?

Start Training

More Shell