Couple things wrong here. First is the date contains spaces, you want the spaces in the filename? In the Windows world it's ok, but in UNIX they difficult to deal with and not used often. Second is you are trying to use the $date variable when it has never been set.
Set a variable like:
But you should probably do something like this:
Code:
DATE=`date +'%Y%m%d'`
mv file.png file.png.$DATE
This will move the file to: file.png.20040428
It has no spaces, and it sorts well with file of the same name.
Hope this helps.