Rename corrupt file like FILE0000.CHK and FILE0001.CHK to the right extention

Last week a friend of me what in a huge stress because he couldn't read the music and photos anymore from his USB-stick / pen-drive.

First make a copy of all file to you localmachine (you never know). Than place this script in the same directory as the file. chmod and run.
That's all!