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

Encase the URL in single quotes. This stops the shell from parsing the contents.

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