I'm trying to execute a command and would like to put the date and time in the output file name.Here is a sample command I'd like to run.md5sum /etc/mtab > 2016_4_25_10_30_AM.logThe date time format can be anything sensible with underscores. Even UTC if the AM and PM can't be used.
How do you put date and time in a file name?
text processing;filenames;date