Make file with name equal to current date / time in Unix
Posted on 2007-08-03
What is the easiest way create a file with a name equal to the current date time? I would like to run the same script and have the files saved in the same location with names that change based on date/time.
Ideally, if the time was 9:43 on August 3, 2007 the output would be filename_2007.08.03_21:43
I thought this would be trivial but I have scoured the web and have not found any answers. I am using terminal in OS X. Please Help!!!