来自 wget 手册页
§ 2.4 记录和输入文件选项 http://gnu.org/software/wget/manual/wget.html#Logging-and-Input-File-Options
‘-i file’
‘--input-file=file’
Read urls from a local or external file. If ‘-’ is specified as file, urls
are read from the standard input. (Use ‘./-’ to read from a file literally
named ‘-’.)
If this function is used, no urls need be present on the command line. If
there are urls both on the command line and in an input file, those on the
command lines will be the first ones to be retrieved. If ‘--force-html’ is
not specified, then file should consist of a series of URLs, one per line.
我尝试做
wget -i - www.google.com
它下载了一个文件index.html
,但随后它挂起。即使在我按下之后
“输入”几次,它仍然挂起。为什么?
因为你还没有关闭你的“文件”wget
继续等待您在标准输入中输入更多内容。要终止,请按 ctrl + d [EOF 终止符]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)