From owner-freebsd-current Mon Feb 24 12:13:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27B6737B401; Mon, 24 Feb 2003 12:13:38 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C36E43FAF; Mon, 24 Feb 2003 12:13:37 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id h1OKDZdK030200; Mon, 24 Feb 2003 21:13:35 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id h1OKDZdr030199; Mon, 24 Feb 2003 21:13:35 +0100 (CET) Date: Mon, 24 Feb 2003 21:13:35 +0100 (CET) Message-Id: <200302242013.h1OKDZdr030199@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, freebsd-small@FreeBSD.ORG Reply-To: freebsd-current@FreeBSD.ORG, freebsd-small@FreeBSD.ORG Subject: Re: machdep.guessed_bootdev sysctl on i386 In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Simon L. Nielsen wrote: > PicoBSD does not necessarily have awk (actually most likely doesn't > since awk is 'big'). cut could be used instead since it much smaller : > > mount | grep 'on / ' | cut -f 1 -d ' ' > > Perhaps somebody has a better way? Does PicoBSD have sed? If it does: mount | sed -n 's/^\([^ ]*\) on \/ .*/\1/p' Doesn't win a beauty contest, but saves one exec. (It could be done with ed, too, if there's no sed.) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message