From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JJoLK-0007Ll-AD for garchives@archives.gentoo.org; Tue, 29 Jan 2008 11:09:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 083A2E0537; Tue, 29 Jan 2008 11:08:24 +0000 (UTC) Received: from mail.ukfsn.org (mx1.ukfsn.org [77.75.108.10]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B3EBE0537 for ; Tue, 29 Jan 2008 11:08:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 4D485DED7E for ; Tue, 29 Jan 2008 11:12:40 +0000 (GMT) Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (smtp-filter.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gy8QwRkmnyaZ for ; Tue, 29 Jan 2008 11:12:40 +0000 (GMT) Received: from wstn.prhnet (unknown [78.32.181.186]) by mail.ukfsn.org (Postfix) with ESMTP id 1D1B2DED6E for ; Tue, 29 Jan 2008 11:12:40 +0000 (GMT) From: Peter Humphrey Organization: at home To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Time format in log files Date: Tue, 29 Jan 2008 10:45:48 +0000 User-Agent: KMail/1.9.7 References: <200801272154.25376.michaelkintzios@gmail.com> <200801281445.45661.peter@humphrey.ukfsn.org> <200801281615.10056.shrdlu@unlimitedmail.org> In-Reply-To: <200801281615.10056.shrdlu@unlimitedmail.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801291045.48799.peter@humphrey.ukfsn.org> X-Archives-Salt: 790cb1a2-7304-46f4-b40c-a4c998bca41c X-Archives-Hash: f21b63995db108cf2527b2dac75d2859 On Monday 28 January 2008 15:15:09 Etaoin Shrdlu wrote: > The solution Mick previously found seems to work just fine even > with /var/log/emerge.log: > > # grep completed /var/log/emerge.log | perl -pe 's/(\d+)/localtime($1)/e' > Tue Nov 2 16:57:54 2004: ::: completed emerge (1 of 1) > sys-apps/portage-2.0.51-r2 to / > Tue Nov 2 16:58:54 2004: ::: completed emerge (1 of 1) > sys-apps/portage-2.0.51-r2 to / > ... Yes, it does here too*. I'm still scratching my head over how to pipe it into a command to filter grep output, but without involving much typing; that's why I went looking for someone else's solution. * Though I don't know what search terms he gave to Google - anything I've tried returns copious amounts of stuff that's no use to me. -- Rgds Peter -- gentoo-user@lists.gentoo.org mailing list