From owner-freebsd-current@FreeBSD.ORG Mon Aug 14 18:05:13 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33DC716A4E6 for ; Mon, 14 Aug 2006 18:05:13 +0000 (UTC) (envelope-from prvs=julian=374604de5@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1213243D79 for ; Mon, 14 Aug 2006 18:05:02 +0000 (GMT) (envelope-from prvs=julian=374604de5@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 14 Aug 2006 11:05:02 -0700 Message-ID: <44E0BB4D.6010103@elischer.org> Date: Mon, 14 Aug 2006 11:05:01 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <44DD4510.5070002@elischer.org> <868xlrwtgf.fsf@xps.des.no> In-Reply-To: <868xlrwtgf.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: current@freebsd.org Subject: Re: suggested addition to 'date' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 18:05:13 -0000 Dag-Erling Smørgrav wrote: >Julian Elischer 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.