<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'><font face="arial, helvetica, sans-serif" size="3">Does anyone happen to know of a command line tool that will read lines from standard input and write them to std out, pre-pending a timestamp? I have a process that emits messages to std out periodically as it processes and I'd like to write that to a log file, but with a time at the start of the line. I could do it with a script but a nice little command would be better, if it exists.&nbsp;</font><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;">I'm looking for something that would perform the function of this script, maybe with an option for format:</div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">while read line;&nbsp;</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">do&nbsp;</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">&nbsp; echo $(date +"%D %T") "$line";&nbsp;</font></div><div><font face="courier new, courier, monaco, monospace, sans-serif">done<br></font><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;"><br></div><div id="e778f144-af70-419b-9624-9c99c156cb84" style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;">Scott</div><br></div></div></body></html>