From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GdbK9-00039B-1J for garchives@archives.gentoo.org; Fri, 27 Oct 2006 23:41:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9RNd5uN032243; Fri, 27 Oct 2006 23:39:05 GMT Received: from cubo.math.ist.utl.pt (cubo.math.ist.utl.pt [193.136.196.1]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9RNb1TF032004 for ; Fri, 27 Oct 2006 23:37:01 GMT Received: from jmaa.math.ist.utl.pt (jmaa.math.ist.utl.pt [193.136.196.112]) by cubo.math.ist.utl.pt (8.13.7/8.13.6) with ESMTP id k9RNb1QJ005592 for ; Sat, 28 Oct 2006 00:37:01 +0100 Received: (qmail 11818 invoked from network); 28 Oct 2006 00:37:00 +0100 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 28 Oct 2006 00:37:00 +0100 Date: Sat, 28 Oct 2006 00:36:59 +0100 (WEST) From: Jorge Almeida To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] date in emerge logs In-Reply-To: <200610272044.55801.peter.ruskin@dsl.pipex.com> Message-ID: References: <7573e9640610271128l3a1e0dbpdd23f303da49a2a4@mail.gmail.com> <200610272044.55801.peter.ruskin@dsl.pipex.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Archives-Salt: d45e2065-e06f-4bd3-8b40-e0329d861cad X-Archives-Hash: 4a78cacc16702243cf3fea280476affa On Fri, 27 Oct 2006, Peter Ruskin wrote: >> Would you say that using date is faster/lighter than awk (as per >> other replies)? This is to be included in a script, so the >> lighter the better... > I would think so, yes. If you write a script like this... > > #!/bin/sh > # unix-time > date -d @$1 > > ...and enter: > $ unix-time 1161911504 > Fri Oct 27 02:11:44 BST 2006 > Thanks, but that's not what I meant. I have a script that acts as a filter, and sometimes lines include unix-time dates. So I suppose that awk it is, since "date" will choke on input other than proper dates. Cheers. -- Jorge Almeida -- gentoo-user@gentoo.org mailing list