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?
wget -i links.txt -R png– Kusalananda Nov 3 '11 at 10:22