I have the following files (among others) in a directory. I’m running Ubuntu 16.04.
484 May 8 21:50 NA19239.vcf
484 May 9 08:50 HG01583.vcf
484 May 9 08:51 HG01595.vcf
0 May 9 15:11 HG00268-WGS-cordSorted.bam.vcf
0 May 9 15:11 HG00096-WGS-cordSorted.bam.vcf
0 May 9 15:11 HG00419-WGS-cordSorted.bam.vcf
if I try
ls *.vcf
I get
ls: invalid option -- '2'
Try 'ls --help' for more information.
I do not get the error for other file extensions in the directory. I do not get the error for .vcf files when I run the command in other directories. What is causing this error? I have not tried anything except searching for this error. Thanks.
-2
or something similar. What about the output of this commandls -- *.vcf
?./*
instead of wildcard alone.--
switch can be used, but not all commands have this option, so./*
is preferred.