Adam Sh
Adam Sh

Reputation: 8577

use wget for address which include #

I try to use this command for download html file:

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

This give me the next error:

-bash: !MyDocs: event not found

How can I use wget for address which include #?

Upvotes: 2

Views: 4022

Answers (1)

suspectus
suspectus

Reputation: 17268

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'

Upvotes: 8

Related Questions