I have a folder with some files (snippet of the contents of the folder)
PAT1.URGRSVP.50.WR786842JOB11632.WRS20140.FILE0005.DAT PAT1.URGRSVP.50.WR786842JOB11643.WRS20140.FILE0003.DAT PAT1.URGRSVP.51.WR786842JOB11643.WRS29232.FILE0003.DAT PAT1.URGRSVP.50.WR786842JOB11694.WRS20140.FILE0002.DAT ... ... ...
My focus is on the 3rd (50,50,51,50) and the 5th (WRS20140,WRS20140,WRS29232,WRS20140) blocks. How can I write a script that displays the duplicate filenames with the same 3rd block AND 5th block (The duplicates of the combination of the 3rd and the 5th block strings)?
So the output should list the following in the above example