Best way to simulate “group by” from bash?

sort ip_addresses | uniq -c

This will print the count first, but other than that it should be exactly what you want.

Leave a Comment