Hi guys,
I know in linux we can do a batch download for certain files with same extension such by doing something like this
wget genomic.fna.gz ie. ftp://ftp.ncbi.nlm.nih.gov/refseq/release//bacteria/
But how would I do this in OSX with curl command.
I have tried curl -0 ftp://ftp.ncbi.nlm.nih.gov/refseq/re...genomic.fna.gz
as an example and I get 550 error as if I was getting file not found error or no permission.
But if I try curl genomic.fna.gz -0 ftp://ftp.ncbi.nlm.nih.gov/refseq/re...teria/bacteria.[??].genomic.fna.gz
I get empty files as I don't know the command to place in between in the ?? to allow it work properly to download all the of the fasta files for bacteria reference set.
Also it changes to bacteria.1.1 bacteria.2.1 bacteria.2..2 bacteria.3.1
Thank you in advance.
-Zapages
I know in linux we can do a batch download for certain files with same extension such by doing something like this
wget genomic.fna.gz ie. ftp://ftp.ncbi.nlm.nih.gov/refseq/release//bacteria/
But how would I do this in OSX with curl command.
I have tried curl -0 ftp://ftp.ncbi.nlm.nih.gov/refseq/re...genomic.fna.gz
as an example and I get 550 error as if I was getting file not found error or no permission.
But if I try curl genomic.fna.gz -0 ftp://ftp.ncbi.nlm.nih.gov/refseq/re...teria/bacteria.[??].genomic.fna.gz
I get empty files as I don't know the command to place in between in the ?? to allow it work properly to download all the of the fasta files for bacteria reference set.
Also it changes to bacteria.1.1 bacteria.2.1 bacteria.2..2 bacteria.3.1
Thank you in advance.
-Zapages
Comment