Re: suggested addition to 'date'

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Mon, 14 Aug 2006 11:35:28 +0200
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
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Aug 14 2006 - 07:35:34 UTC

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