Skip to content

Comment on Analyzing the attacks on my website

Comments

But I want to see how many attacks from each continent. So I call on my old friend awk for that

I don't understand what awk is accomplishing here. To get the count, just use uniq -c which you are doing (tip, you can also do a sort -rn after that)

the awk command looks like a noop to me, if you've only got the continents in the file

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.