Date: Mon, 15 Dec 2003 16:54:51 -0700 From: David Bear <David.Bear@asu.edu> To: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> Cc: freebsd-questions@freebsd.org Subject: Re: awk question, maybe Message-ID: <20031215165451.I32172@asu.edu> In-Reply-To: <"from fgleiser"@cactus.fi.uba.ar> References: <20031215163033.H32172@asu.edu> <20031215203734.S95689-100000@cactus.fi.uba.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 15, 2003 at 08:39:06PM -0300, Fernando Gleiser wrote: > 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}' > yes.. I was hoping it would be simple. and I thought of using a regex to match the lines I want after sending that note. thanks for all the replies. -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031215165451.I32172>