mv myfile.txt myfile`date -Is`.txt
- shorter version
but : will not work with some unix commands, such as rsync or scp, because it parses part of the name as the host address. use tr to change :
mv myfile.txt myfile`date -Is|tr : -`.txt
or
mv myfile.txt myfile$(date -Is|tr : -).txt
source share