Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2000 17:15:29 -0700
From:      Gary Kline <kline@thought.org>
To:        Mark Ovens <marko@FreeBSD.ORG>
Cc:        Gary Kline <kline@thought.org>, stable@FreeBSD.ORG
Subject:   Re: A new file for the base system?
Message-ID:  <20000928171528.A53977@tao.thought.org>
In-Reply-To: <20000929004607.E255@parish>; from marko@FreeBSD.ORG on Fri, Sep 29, 2000 at 12:46:07AM %2B0100
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000928171528.A53977>