A few times I've had situations where I was downloading a lot of files using cURL or wget. In some cases getting the right output involved some parameters that made their way into the file names.

I keep this little snippet of script around for that situation. This will iterate the files in the currect directory, removing any parameters from the file names.

I pieced this together from some answers on StackOverflow and don't have the links handy. I'll add them if I can find them.