Sep-06-2020, 01:03 PM
ALL:
I have an ASCII text file that contains First and Last names of a phone list.
Each full name is on a newline.
I need a new list generated that is sorted by the number of occurrences these names appear in the text file.
for example:
the file names.txt contains:
bill smith
joe williams
bill smith
jane doe
joe williams
bill smith
the final list should look like this:
bill smith (3)
joe williams (2)
jane doe (1)
All the examples I see online break the text into a single letter list, which I DON'T WANT!
Thanks in advance for your help.
I have an ASCII text file that contains First and Last names of a phone list.
Each full name is on a newline.
I need a new list generated that is sorted by the number of occurrences these names appear in the text file.
for example:
the file names.txt contains:
bill smith
joe williams
bill smith
jane doe
joe williams
bill smith
the final list should look like this:
bill smith (3)
joe williams (2)
jane doe (1)
All the examples I see online break the text into a single letter list, which I DON'T WANT!
Thanks in advance for your help.