I need help please... :(
I created the following code to extract .vcf files from sub directories in a directory
time find /<location path>/ -name "*.vcf"\
| xargs cp -i --target-directory /<another location path and the directory I want to save the files in>
But now I want to modify this code to extract files which have the following format
From directories that contain 2 vcf files which have the same name but the xxx part.
aa_13 directory has
aa_13.xxx.somenumber.yyyy.zzz.vcf and aa_13.somenumber.yyyy.zzz.vcf
I want to get only the aa_13.xxx.somenumber.yyyy.zzz.vcf into a separate directory.
I think there is a small edition which needs to be done, reading the xxx and yyy.zzz.vcf parts... But I just can't figure it out.
Can anyone please help, or guide me to the direction I need to go?
Thanks so much in advance