Okay so i have on my server in folder called /DL/ files like: 543_1_2.zip?response-content-disposition=attachment&AWSAccessKeyId=361&Expires=2&Signature=336 1_1_2.zip?response-content-disposition=attachment&AWSAccessKeyId=236&Expires=362&Signature=336 how those files becomes with extension only as *.zip ? and not with those crap after ?response ... it should be recrusive as there are multiple files.
Not sure if you already did this, but this looks pretty straight forward. for i in `find .` ; do mv $i `echo $i | awk -F"?" '{print$1}'` ; done Run the above from the directory that these files are in. Should fix them all right up.