2

我尝试使用此命令下载 html 文件:

wget -r --page-requisites  dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1

这给了我下一个错误:

-bash: !MyDocs: event not found

如何使用 wget 获取包含 # 的地址?

4

1 回答 1

8

用单引号将 URL 括起来。这会阻止 shell 解析内容。

 wget -r --page-requisites  'dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1'
于 2013-03-12T08:10:45.207 回答