I have a list of vcf files; I also have a list of names in a txt file like
What I have in this txt files are part of name of each vcf files
I want to move .vcf files having these in their name to a separate folder
[fi1d18@cyan01 TRG]$ for i in *.vcf
> do if grep -q $i 1.txt;
> cp *$out* /temp/hgig/fi1d18/TRG45/snp/snp/TRG/pre/
-bash: syntax error near unexpected token `done'
How I can complete this task?