2013-03-12 81 views
1

我尝试使用此命令下载HTML文件:使用wget的地址,其中包括#

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

这给我一个错误:

-bash: !MyDocs: event not found 

我如何使用wget的地址,该地址包括#?

回答

4

用单引号填入URL。这会阻止shell解析内容。

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