From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 12:18:23 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 8A02437B404 for ; Wed, 26 Mar 2003 12:18:23 -0800 (PST) Received: from hotmail.com (dav44.sea1.hotmail.com [207.68.162.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F5443F93 for ; Wed, 26 Mar 2003 12:18:23 -0800 (PST) (envelope-from kenzo_chin@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 26 Mar 2003 12:18:22 -0800 Received: from 209.187.233.156 by DAV44.sea1.internal.hotmail.com with DAV; Wed, 26 Mar 2003 20:18:22 +0000 X-Originating-IP: [209.187.233.156] X-Originating-Email: [kenzo_chin@hotmail.com] From: "Kenzo" To: Date: Wed, 26 Mar 2003 14:18:20 -0600 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 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 26 Mar 2003 20:18:22.0898 (UTC) FILETIME=[D9974120:01C2F3D4] X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: perl help 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: Wed, 26 Mar 2003 20:18:25 -0000 I don't know how to write anything in perl and will eventually learn it. but I was wondering if anyone would help write a quick perl script for me. Basically I want the script to look thru a file for certain words and cound how many times it finds the word that comes after. I have a log file that keeps track of E-mail attachments being send and received, and I want to be able to do a count of certain attachments. for example. say I see alot of "big this", "big that" and "big nothing" I want to be able to see how many times the word that comes after big appears in the log file. so the output would be like this. this 5 that 10 nothing 20 I hope this is not too confusing. thanks.