如何使用脚本下载多个文件

Sae*_*d87 3 command-line downloads

我必须在 googlecode 中从这里下载多个文件。目前我打开每个文件夹并通过使用浏览器保存来下载每个文件。有没有办法自动下载所有文件夹/文件?

bla*_*899 8

wget 是您想要的命令行实用程序:

wget -r http://tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2/
Run Code Online (Sandbox Code Playgroud)

它下载所有内容:

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

和所有子目录 - 文件夹和文件 - 在 release_tinyos_2_1_2/


进一步阅读

主页:

  • 它们将保存在您当前的目录中。 (2认同)
  • 在您所在的目录中。通常在您的主目录中。试试这个'mkdir tinyos'来创建一个名为'tinyos'的文件夹,'cd tinyos' cd进入该文件夹,然后运行命令它将下载该文件夹中的所有内容。 (2认同)