Open tolot27 opened 5 years ago
Does glob -f -- pget *.fastq.gz
work for you? That is what I've always used with success. Not to say there isn't an issue with mget.
pget
accepts only one file parameter, mget
multiple file parameters. If I use mget
with just one wildcard parameter, it works, as pget
do so. The problem here is two-fold (or two separate issues). glob
seem to process only the first pattern and not multiple patterns. mget
can deal with multiple wildcard file patterns but sometimes fail to resolve the wildcards.
glob expands its all arguments but the first one, which is a command to execute after expansion.
If I want to download multiple files containing wildcards with one mget command, some files are not found.
Using
glob -- mget ...
does not work either because it looks like glob only parses the first file argument of mget.Even
glob echo
alone retrieves just the files of its first wildcard argument: