html - 使用 wget 作为地址,其中包括 #

标签 html wget

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

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

这给我下一个错误:

-bash: !MyDocs: event not found

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

最佳答案

将 URL 括在单引号中。这会阻止 shell 解析内容。

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

关于html - 使用 wget 作为地址,其中包括 #,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15356030/

相关文章:

html - 如何在 html 中显示 ► 播放(向前)或向右实心箭头符号?

html - CSS 显示 : table-cell ignores overflow and width

javascript - 更改有序列表中的编号?

go - 是什么导致了这种 go​​lang os.Exec 行为(转义双引号)?

linux - 通过命令行从站点下载图像

java - 如何创建海量文件下载线程池并重构当前代码?

html - SVG 图像高度自动在 Chrome 中不起作用

html - 强制 div 进入左列

linux - 并行下载 url 列表并重命名

linux - 如何在 Linux 中隐藏 wget 输出?