From owner-freebsd-isp Thu Oct 12 18:31:37 2000 Delivered-To: freebsd-isp@freebsd.org Received: from giroc.albury.net.au (giroc.albury.NET.AU [203.15.244.13]) by hub.freebsd.org (Postfix) with ESMTP id 4869837B502 for ; Thu, 12 Oct 2000 18:31:34 -0700 (PDT) Received: (from nicks@localhost) by giroc.albury.net.au (8.9.3/8.9.3) id MAA97367; Fri, 13 Oct 2000 12:31:12 +1100 (EST) Date: Fri, 13 Oct 2000 12:31:12 +1100 From: Nick Slager To: Odhiambo Washington Cc: FBSD-ISP Subject: Re: Processing details files Message-ID: <20001013123112.A88285@albury.net.au> References: <20001012140434.A38247@poeza.iconnect.co.ke> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001012140434.A38247@poeza.iconnect.co.ke>; from wash@iconnect.co.ke on Thu, Oct 12, 2000 at 02:04:34PM +0300 X-Homer: Whoohooooooo! Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Odhiambo Washington (wash@iconnect.co.ke): > Kindly advise how I can process such a file: > > NB: Did I mention to you that I have no idea how to write a script? ;-) > > Log starts on Tue Aug 1 00:01:15 2000. > Date Logout Userid IP Time Term M# Sent(b) Recieved(b) > 08/06/20 11:09:23 caacall@mombasa 20 78.45 Idle 27 416836 437705 > 08/06/20 23:19:01 caacall@mombasa 20 701.3 Lost 27 6369328 5897091 awk and sed are your friends. Pick up a copy of 'Sed and Awk' (Oreilly). Nick -- From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message