The thing is, I have a lot of files which have 2 extensions (as in file.tar.bz2). Using the functions as shown in that thread will rename the file to file.tar-2008-02-26.bz2.
Of course, this is not what I want. Could anybody point me towards a way around this, like setting the filename to everything before the first period and the extension being the whole last bit?
(Of course, that woul mess up files with names like application-v1.0.3.9.zip, but I have far fewer of these )