From owner-freebsd-stable Thu Sep 28 17:15:48 2000 Delivered-To: freebsd-stable@freebsd.org Received: from gershwin.tera.com (gershwin.tera.com [207.224.230.28]) by hub.freebsd.org (Postfix) with ESMTP id D238637B423; Thu, 28 Sep 2000 17:15:33 -0700 (PDT) Received: from thought.org (tao.sea.tera.com [207.108.223.55]) by gershwin.tera.com (8.9.3/8.9.3) with ESMTP id RAA07124; Thu, 28 Sep 2000 17:15:32 -0700 (PDT) Received: (from kline@localhost) by thought.org (8.11.0/8.11.0) id e8T0FTd54089; Thu, 28 Sep 2000 17:15:29 -0700 (PDT) (envelope-from kline) Date: Thu, 28 Sep 2000 17:15:29 -0700 From: Gary Kline To: Mark Ovens Cc: Gary Kline , stable@FreeBSD.ORG Subject: Re: A new file for the base system? Message-ID: <20000928171528.A53977@tao.thought.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000929004607.E255@parish>; from marko@FreeBSD.ORG on Fri, Sep 29, 2000 at 12:46:07AM +0100 X-Organization: Thought Unlimited. Public service Unix since 1986. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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, ;) 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