Re: suggested addition to 'date'

From: Julian Elischer <julian_at_elischer.org>
Date: Mon, 14 Aug 2006 11:05:01 -0700
Dag-Erling Smørgrav wrote:

>Julian Elischer <julian_at_elischer.org> writes:
>  
>
>>At various times I've wanted to add timestamps to logfiles as they
>>are generated..
>>    
>>
>
>while read line ; do echo $(date '+%Y-%m-%d %H:%M:%S') "$line" ; done
>
>DES
>
while this is true, if you had read the rest of the thread you would 
have seen the words
"without running date for every line".

I even said that it could be done using shell if one WAS willing to run 
date for each line.
Received on Mon Aug 14 2006 - 16:05:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC