Simon L. Nielsen <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to