I'm downloading a site with wget and a lot of the links have queries attached to them, so when I do this:
wget -nv -c -r -H -A mp3 -nd http://url.to.old.podcasts.com/
I end up with a lot of files like this:
1.mp3?foo=bar 2.mp3?blatz=pow 3.mp3?fizz=buzz
What I'd like to end up with is:
1.mp3 2.mp3 3.mp3
This is all taking place in ubuntu linux and I've got wget 1.10.2.
I know I can do this after I get everything via a script to rename everything. However I'd really like a solution from within wget so I can see the correct names as the download is happening.
Can anyone help me unravel this?