Go Back   SEQanswers > General

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to batch download thousands of FASTA files? J:Mo Bioinformatics 6 12-18-2014 03:00 PM
Can one download a file from an FTP server unsing aspera? carmeyeii Bioinformatics 2 12-14-2012 08:27 AM
how to download a batch of genes from cricetulus griseus Iredc27 General 0 02-07-2012 08:59 AM
download batch sequence from genebank jrss General 0 02-01-2012 12:22 PM
NCBI FTP Server? kasthuri Bioinformatics 5 06-09-2011 10:03 AM

Thread Tools
Old 07-26-2014, 09:42 AM   #1
Location: NJ

Join Date: Oct 2012
Posts: 97
Default batch download from NCBI FTP

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.

But how would I do this in OSX with curl command.

I have tried curl -0

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[??].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 is offline   Reply With Quote
Old 07-26-2014, 10:22 AM   #2
Senior Member
Location: East Coast USA

Join Date: Feb 2008
Posts: 7,091

Try this. Adjust X for the number of files you want to get. It appears there are 152 right now at the FTP link.

$ curl "[1-X].1.genomic.fna.gz" -o "bacteria.#1.1.genomic.fna.gz"
GenoMax is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 10:55 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO