Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2003 20:39:06 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        David Bear <David.Bear@asu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: awk question, maybe
Message-ID:  <20031215203734.S95689-100000@cactus.fi.uba.ar>
In-Reply-To: <20031215163033.H32172@asu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Dec 2003, David Bear wrote:

> i would like to do something like
>
> df | awk '{print $1}'
>
> to capture all the current file systems.  But I would like to strip
> off the first and last lines, since these are generally -- not needed.

df | awk '$1 ~/^\/dev/ {print $1}'


		Fer




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031215203734.S95689-100000>