Shell脚本下载文件

时间:2010-10-27 18:47:18

标签: unix shell

我正在尝试编写一个unix shell脚本来下载网站上发布的目录中的所有文件。我该怎么做呢?谢谢playas

3 个答案:

答案 0 :(得分:5)

您可以使用wget的标志:

--mirror

--no-parent 

答案 1 :(得分:2)

答案 2 :(得分:1)

wget -r -np http://example.com/directory/to/files