Date: Mon, 24 Feb 2003 21:13:35 +0100 (CET) From: Oliver Fromme <olli@secnetix.de> To: freebsd-current@FreeBSD.ORG, freebsd-small@FreeBSD.ORG Subject: Re: machdep.guessed_bootdev sysctl on i386 Message-ID: <200302242013.h1OKDZdr030199@lurza.secnetix.de> In-Reply-To: <freebsd-current.20030224181823.GA369@nitro.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Simon L. Nielsen <simon@nitro.dk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302242013.h1OKDZdr030199>