2
The problem is this, I have a file with a list of URLs, say links.txt
:
http://www.tipsfor.us/wp-content/uploads/2009/01/vim-editor-icon.png http://wp.psyx.us/wp-content/uploads/2011/01/vi-vim-tutorial-1.gif http://proft.me/static/img/vim/vi-vim-cheat-sheet.gif
What I'm trying to do is let wget
know that I don't want it to get png
like so:
$ wget -R png -i links.txt
But this has no effect and wget
still gets png
files along with others. Piping links.txt
through grep
is not an option as in actual file the links are in this form http://example.com/get/123987562
that then gets resolved/redirected into something like http://example.com/media/images/cool-pic.jpg
So the question is, how do I reject/exclude certain files with wget
?
Is order important? Try
wget -i links.txt -R png
– Kusalananda – 2011-11-03T10:22:21.623Nope. Order is not important. – grimgav – 2011-11-03T11:08:38.560