From owner-freebsd-questions@FreeBSD.ORG Mon May 19 05:18:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6173937B401 for ; Mon, 19 May 2003 05:18:13 -0700 (PDT) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0381B43FAF for ; Mon, 19 May 2003 05:18:08 -0700 (PDT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id A4ECB1992D; Mon, 19 May 2003 15:17:44 +0300 (EEST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id EA14319A2F for ; Mon, 19 May 2003 15:17:36 +0300 (EEST) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h4JCMcq35005 for ; Mon, 19 May 2003 15:22:38 +0300 (EEST) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id 035674DE; Mon, 19 May 2003 15:17:33 +0300 (EEST) From: Andrey Simonenko To: freebsd-questions@freebsd.org In-Reply-To: <20030519174723.B93323-100000@hewey.af.speednet.com.au.lucky.freebsd.questions> X-Newsgroups: lucky.freebsd.questions User-Agent: tin/1.5.16-20030125 ("Bubbles") (UNIX) (FreeBSD/4.7-STABLE (i386)) Message-Id: <20030519121733.035674DE@pm514-9.comsys.ntu-kpi.kiev.ua> Date: Mon, 19 May 2003 15:17:33 +0300 (EEST) Subject: Re: timestamping a text stream X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 12:18:13 -0000 On Mon, 19 May 2003 07:52:43 +0000 (UTC) in lucky.freebsd.questions, Andy Farkas wrote: > > Does anybody know of a program similar to script(1) or tee(1) that will > timestamp each line of input as it happens? > > Ultimately, I want each line of a `make buildworld` timestamped. > Something like this: #!/bin/sh cd /usr/src make buildworld 2>&1 | while read line; do echo `date` ${line} done ps: Sorry for possible duplicated answers...