Linux – Commenting in a wget list

linuxwget

I need to download about 100 packages so I'm using wget-list to make it easier. My question however, is once I've made the list (I assume it's in a .txt format), is there a way I can insert comments into it that wget will ignore? Something like this:

#This is a comment
http://someurl.com
http://anotherurl.com

Best Answer

It doesn't look like it:

If --force-html is not specified, then file should consist of a series of URLs, one per line.

You could try HTML style comments: <!-- Comment --> - maybe those get interpreted as comments, although I wouldn't count on it.

You could also use the --force-html parameter and feed it HTML - a format in which you'd have all freedom to comment as much as you like. The downside is that it adds a lot of clutter:

<!-- This is a comment -->
<a href="http://someurl.com"></a>
<a href="http://anotherurl.com"></a>
Related Question