2013-03-12 79 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'