From owner-freebsd-stable Thu Sep 28 17:35:39 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by hub.freebsd.org (Postfix) with ESMTP id 8E0A737B423 for ; Thu, 28 Sep 2000 17:34:59 -0700 (PDT) Received: from parish ([62.255.96.31]) by mta05-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000929003457.LKKI19709.mta05-svc.ntlworld.com@parish>; Fri, 29 Sep 2000 01:34:57 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8T0YnE31964; Fri, 29 Sep 2000 01:34:49 +0100 (BST) (envelope-from mark) Date: Fri, 29 Sep 2000 01:34:49 +0100 From: Mark Ovens To: Gary Kline Cc: stable@freebsd.org Subject: Re: A new file for the base system? Message-ID: <20000929013449.F255@parish> References: <20000928154500.B253@parish> <200009281450.e8SEocI18788@pau-amma.whistle.com> <20000928160638.C253@parish> <14803.28795.749606.964088@adler.grauel.com> <20000928121524.A51204@tao.thought.org> <20000929004607.E255@parish> <20000928171528.A53977@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20000928171528.A53977@tao.thought.org>; from kline@thought.org on Thu, Sep 28, 2000 at 05:15:29PM -0700 Organization: Total lack of Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 28, 2000 at 05:15:29PM -0700, Gary Kline wrote: > On Fri, Sep 29, 2000 at 12:46:07AM +0100, Mark Ovens wrote: > > On Thu, Sep 28, 2000 at 12:15:24PM -0700, Gary Kline wrote: > > > > > > Another thing that would be a good diagnostic would be a perl or shell > > > script that found duplicate IRQ usages... this for the hopelessly lazy. > > > > > > > Here's something that might help. I knocked it up ages ago to do something > > (forget exactly what now....). I've split it (hence the trailing \'s) to > > protect it from been line-wrapped by mail. > > > > #!/bin/sh > > > > dmesg | \ > > grep -i 'irq [0-9][0-9]*' | \ > > sed 's/\(^[a-z0-9]*[: ]\).*\(irq [0-9][0-9]*\).*/\1 \2/' | \ > > sort -n +2 -3 > > > > Thanks for the regex mastery. And sed expertise. The first > two lines are pretty evident. It's your sed line that chops, > dices, slices, and so on, ;) > Of course it does. Didn't you know that 'sed' is short for 'slice et dice' (McDonalds use it for making chips; fries to you) :) > gary > > > > -- > Gary D. Kline kline@tao.thought.org Public service Unix > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message