From owner-freebsd-questions Thu Oct 14 1:22:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.island.net.au (mail.island.net.au [203.28.142.3]) by hub.freebsd.org (Postfix) with ESMTP id 22F6514EE3 for ; Thu, 14 Oct 1999 01:22:30 -0700 (PDT) (envelope-from hugh@island.net.au) Received: from solo (solo.island.net.au [203.28.142.5]) by mail.island.net.au (8.8.5/8.8.5) with SMTP id SAA04709 for ; Thu, 14 Oct 1999 18:22:29 +1000 (EST) Message-ID: <001c01bf161c$b2a1b260$088ea8c0@island.net.au> From: "Hugh Blandford" To: Subject: Off topic: Scripting gurus please help. Date: Thu, 14 Oct 1999 18:18:29 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, this is very off topic but ..... I need some help. This logfile is very large and I have ended up with two formats being used in it. Below are two examples with the IP addresses changed. I know that it is possible to write a script to go through and seperate the two formats into different files, however I am not quite upto that yet. Anyone have any a script that would do it? 202.34.179.53 - - [29/May/1999:00:10:58 +1000] "GET /profile/Lware.class HTTP/1.1" 200 2117 203.44.126.127 - - [14/Oct/1999:18:06:47 +1000] "GET /images/logo.jpg HTTP/1.0" 304 - "http://www.esprelax.com.au/links/links.html" " Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message