Add time stamp to unix command


I am running a shell script which writes to a log file. Is there any way I can get the name of the log file to be a time stamp:

sh TIMESTAMP.log 0

Is there a way I can make TIMESTAMP above an actual time stamp.


sh `date '+%F-%T'`.log 0 

See man date for the format descriptors available in date.

Thanks ken_yap… that did the trick…