Hers's a little alias which I use in the bash shell:
Code:
alias otag="date +-%Y-%m%d-%H%Mh%S"
It comes in handy for creating files with timestamps in their names. Like this, for instance:
Code:
$ script file`otag`
Script started, output file is file-2002-1118-1207h49
$ ./configure
[. . .]
$ make && make install
[. . .]
$ ^D
Script done, output file is file-2002-1118-1207h49
now all of the configuration and make output is in a timestamped file where it can be analysed.