Skip to content

Instantly share code, notes, and snippets.

@nuada
Created March 31, 2014 12:13
Show Gist options
  • Save nuada/9890988 to your computer and use it in GitHub Desktop.
Save nuada/9890988 to your computer and use it in GitHub Desktop.
#!/bin/bash
#usage: $0 <prefix> <number of parts>
#eg: $0 nt 17
# Download blast db form NCBI
for i in $(seq -f '%02.f' 0 $2); do
wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/${1}.${i}.tar.gz
wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/${1}.${i}.tar.gz.md5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment