I have a Makefile which I invoke using the following command:
$ make analyze foo=History01
I have the following Makefile and I need to attached the timestamp to the name of the log file:
analyze: cat $(foo) | perl tokenize.pl | flookup spanmorph.fst 2>&1 | tee -a $(foo)TIMESTAMP.log
Instead of TIMESTAMP I need the system timestamp (when the log file is created) with the format yyyyMMddHHmmss
I am a Ubuntu user by the way and I am not really experienced with Linux, I would be grateful for any answer. Thanks in advance.