Date: Mon, 14 Aug 2006 11:05:01 -0700 From: Julian Elischer <julian@elischer.org> To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no> Cc: current@freebsd.org Subject: Re: suggested addition to 'date' Message-ID: <44E0BB4D.6010103@elischer.org> In-Reply-To: <868xlrwtgf.fsf@xps.des.no> References: <44DD4510.5070002@elischer.org> <868xlrwtgf.fsf@xps.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote: >Julian Elischer <julian@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44E0BB4D.6010103>