I have a very large log file in which I need to count the occurrences of all the variations of a particular string; that is:
There are a large number of file IDs that appear in the format AA000####. I have to find out what the top five or ten IDs are in this file (which ones appear the most times).
I figure this can be done with select-string and regular expressions?