Search for duplicate prefix of file names
- by Mia
I have a folder contains files name as: xxx.get.txt and xxx.resp.txt
xxx.get.txt, xxx.resp.txt
yyy.get.txt, yyy.resp.txt
zzz.get.txt, zzz.resp.txt, etc
each prefix xxx should have two corresponding files, .get.txt and .resp.txt
However, now I calculate the number of .get.txt and the number of .resp.txt files, they are not equal,…