If you execute the following command you will get the entire directory tree structure beginning from 'mirrors.vbi.vt.edu' (only the structure, not the files because of the argument --no-parent).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -r --no-parent http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/temp/igblast/ |
To get "igblast" files and directories only, execute the following command:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -r -nH --cut-dirs=5 --no-parent http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/temp/igblast/ |
Where -nH remove "http://mirrors.vbi.vt.edu/" and --cut_dirs remove the others directories.
Hello Thiago,
ReplyDeleteToday I arrived to your blog while I was looking for a standalone version of igblast. I used your recursive download to obtain igblast, however while trying to run it I found out that the main file, igblastn was not an executable. Have you used igblastn before? Do you have any suggestions?
I appreciate any kind of help and thank you in advance,
Carlos
Hi Carlos,
ReplyDeleteI just downloaded igblast from FTP and used igblastn in my Linux machine (Archlinux, Kernel 3.1.1). Are you using Linux? Did you try to change the file permission to execute?
Hi Thiago,
ReplyDeleteThanks for your quick reply. Now I feel my ears growing like those of a donkey. It was just what you mentioned, forgot to change the file permissions.
Thanks a lot!
Thank you!!!! I've been searching for this command set for a long time!
ReplyDeleteMost times people allude to the option to download a directory, have it keep its structure, *and* leave off the parent directory tree structure but never spell it out like you did.
I have <1gb files that need transferring for work and wget is a lifesaver so I don't tie up my machine.