Date and Time format

I want to append current date and time to a file name like filename_090920091210. If I use filename_`date +%d%m%Y%T`, the ouput is filename_0909200912:10:33.

How to format this as filename_090920091210.

Please let me know.

Thanks in advance.

Use the sequences %H and %M instead of %T, please read the manual of date.

Regards

Thanks Franklin52.

Tip: If you reverse the date in a filename suffix those files will be in date order in a "ls".

YYYYMMDDHHMM="`date +%Y%m%d%H%M`"        # Reversed date yyyymmddhhmm