justaguy
justaguy

Reputation: 3022

moving files with specific extension to directory

I am trying to move all files with a .multianno.txt from one directory to another. I thought the command below would work but maybe the * is causing problems. Thank you :).

mv /home/cmccabe/Desktop/NGS/annovar/*.multianno.txt /home/cmccabe/Desktop/NGS/API/2-12-2015/annovar/
mv: cannot stat ‘/home/cmccabe/Desktop/NGS/annovar/*.multianno.txt’: No such file or directory

directory (/home/cmccabe/Desktop/NGS/annovar)

TSVC_variants_IonXpress_001_variant_strandbias_readcount.vcf.hg19_multianno.txt
TSVC_variants_IonXpress_002_variant_strandbias_readcount.vcf.hg19_multianno.txt

TSVC_variants_IonXpress_003_variant_strandbias_readcount.vcf.hg19_multianno.txt

Upvotes: 0

Views: 54

Answers (1)

Barmar
Barmar

Reputation: 781059

Your filenames end in _multianno.txt, not .multianno.txt, so use

mv /home/cmccabe/Desktop/NGS/annovar/*_multianno.txt /home/cmccabe/Desktop/NGS/API/2-12-2015/annovar/

Upvotes: 2

Related Questions