Date: Wed, 10 Feb 2010 00:05:49 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Andrew Brampton <brampton+freebsd@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: sysctl with regex? Message-ID: <86tytqvwky.fsf@ds4.des.no> In-Reply-To: <d41814901002091308s7e894b55p880bde165bbbe703@mail.gmail.com> (Andrew Brampton's message of "Tue, 9 Feb 2010 21:08:22 %2B0000") References: <d41814901002091308s7e894b55p880bde165bbbe703@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Brampton <brampton+freebsd@gmail.com> writes: > Today I was writing a script to read all the dev.cpu.?.temperature > sysctl OIDs. I was parsing them using a simple grep, but it occurred > to me it might be better if sysctl supported some form of regexp. You mean glob, not regexp... > For example instead of typing: > sysctl -a | grep dev.cpu.*.temperature > > I could write: > sysctl dev.cpu.*.temperature Sounds like a good idea. Shouldn't be too hard to implement either. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86tytqvwky.fsf>