| Next | Welcome to my ~/bin | 12 |
I think I have probably typed this about a million times now:
... | sort | uniq -c | sort -n
This counts the number of occurrences of each line in the input
For example, this:
219.134.31.253
60.209.197.100
60.209.197.100
218.81.21.3
60.209.197.100
158.130.12.194
219.134.31.253
60.209.197.100
143.48.1.21
158.130.12.194
Becomes this:
1 143.48.1.21
1 218.81.21.3
2 158.130.12.194
2 219.134.31.253
4 60.209.197.100
| Next | Menu | ![]() |
Copyright © 2005 M. J. Dominus |