From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 24 01:42:35 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC364106566C for ; Wed, 24 Mar 2010 01:42:35 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 903A18FC1B for ; Wed, 24 Mar 2010 01:42:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id C80B37BAFB; Wed, 24 Mar 2010 14:42:34 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aPRSw1nDfK8Q; Wed, 24 Mar 2010 14:42:29 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Wed, 24 Mar 2010 14:42:29 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 80ADD11432; Wed, 24 Mar 2010 14:42:29 +1300 (NZDT) Date: Wed, 24 Mar 2010 14:42:29 +1300 From: Andrew Thompson To: Atom Smasher Message-ID: <20100324014229.GF45454@citylink.fud.org.nz> References: <1003231706140.40436@smasher> <20100323180354.GD45454@citylink.fud.org.nz> <1003240736570.40436@smasher> <7d6fde3d1003231210s38ec9419r5149fa7af6f5bd2b@mail.gmail.com> <1003241407070.40436@smasher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1003241407070.40436@smasher> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Garrett Cooper , FreeBSD-Hackers Subject: Re: kenv - output needed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 01:42:35 -0000 On Wed, Mar 24, 2010 at 02:09:41PM +1300, Atom Smasher wrote: > On Tue, 23 Mar 2010, Garrett Cooper wrote: > >> Are you looking for data represented similar to sysctl(8)? > ============ > > it doesn't quite have to be, but it is being parsed in a script. How about pulling the kenv variables into the script. #!/bin/sh eval $(kenv | awk -F= '/^smbios/ { gsub("\\\.","_",$1); print $1 "=" $2}') echo $smbios_chassis_maker