在 wget 列表中评论?

n0p*_*0pe 5 linux wget

我需要下载大约 100 个包,所以我使用 wget-list 来简化它。然而,我的问题是,一旦我制作了列表(我假设它是 .txt 格式),有没有办法在其中插入 wget 会忽略的注释?像这样的东西:

#This is a comment
http://someurl.com
http://anotherurl.com
Run Code Online (Sandbox Code Playgroud)

Pek*_*kka 1

看起来不像

如果--force-html未指定,则文件应包含一系列 URL,每行一个。

您可以尝试 HTML 样式注释:<!-- Comment -->-也许这些会被解释为注释,尽管我不会指望它。

您还可以使用该--force-html参数并为其提供 HTML - 在这种格式中您可以自由地发表评论。缺点是它增加了很多混乱:

<!-- This is a comment -->
<a href="http://someurl.com"></a>
<a href="http://anotherurl.com"></a>
Run Code Online (Sandbox Code Playgroud)