Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 从ftp中选择样本的wget?_Linux_Wget - Fatal编程技术网

Linux 从ftp中选择样本的wget?

Linux 从ftp中选择样本的wget?,linux,wget,Linux,Wget,我想从该站点下载选定的文件: ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP042/SRP042286 如果我想下载所有这些,我可以: $wget -r ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP042/SRP042286/* 但我的问题是,下载选定示例(如SRR1299458/-SRR

我想从该站点下载选定的文件:

ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP042/SRP042286
如果我想下载所有这些,我可以:

$wget -r ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP042/SRP042286/*

但我的问题是,下载选定示例(如
SRR1299458/-SRR1299466/
)的简单方法是什么?您可以使用
wget-rftp://example.com/path/{dir1,dir2}

wget -r ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP042/SRP042286/{SRR1299458,SRR1299466}