Bash tips
From DarkWiki
Prepending lines of text with a timestamp
To put a date/time against each line (perhaps as part of logging), you can use the ts command.
To put a date/time against each line (perhaps as part of logging), you can use the ts command.