How to download multiple files using a script

9,128

wget is the command line utility you want:

wget -r http://tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2/

It downloads everything in:

http://tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2/

and all subdirectories - folder(s) and file(s) - in release_tinyos_2_1_2/


Further Reading:

Home Page:

Share:
9,128

Related videos on Youtube

Saeid87
Author by

Saeid87

Updated on September 18, 2022

Comments

  • Saeid87
    Saeid87 over 1 year

    I have to download multiple files from here in googlecode. Currently I open each folder and download each file by saving it using my browser. Is there a way to automatically download all folder/files?

  • Saeid87
    Saeid87 over 11 years
    Thanks, this look like a nice solution, but before I start the download, can you please tell me where these files will be saved?
  • Ankit
    Ankit over 11 years
    they will be saved in your current directory.
  • Saeid87
    Saeid87 over 11 years
    OMG I think this command is downloading everything in this subdomain, not only the folder I wanted but everything else!
  • Saeid87
    Saeid87 over 11 years
    I mean it dowloaded everything inside /svn/ folder. Is there a fix for this?
  • blade19899
    blade19899 over 11 years
    /svn/??? remove /svn/*.* with root nautilus like so 'gksudo nautilus' then got to '/svn/'? then remove all downloaded content and then again run this in terminal 'cd' then 'mkdir tinyos' and then cd 'tinyos' and the the command 'wget -r tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2'