Search for duplicate prefix of file names

Posted by Mia on Ask Ubuntu See other posts from Ask Ubuntu or by Mia
Published on 2012-06-11T09:48:39Z Indexed on 2012/06/11 10:47 UTC
Read the original article Hit count: 271

Filed under:

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, there're ten more .get.txt. I want to find out, which .get.txt files do not have ´.resp.txt´ file

Is it possible?

Many thanks!

© Ask Ubuntu or respective owner

Related posts about command-line