From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 15:56:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0047F16A4CE for ; Mon, 15 Dec 2003 15:56:47 -0800 (PST) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 264A843D68 for ; Mon, 15 Dec 2003 15:56:42 -0800 (PST) (envelope-from David.Bear@asu.edu) Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0HPY00401NRKCY@asu.edu> for freebsd-questions@freebsd.org; Mon, 15 Dec 2003 16:54:56 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) <0HPY004EHNRJ1S@asu.edu>; Mon, 15 Dec 2003 16:54:56 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.120.183]) (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id hBFNsoS8024981; Mon, 15 Dec 2003 16:54:50 -0700 (MST) Received: (from iddwb@localhost) by moroni.pp.asu.edu (8.11.6/8.11.6) id hBFNspU02000; Mon, 15 Dec 2003 16:54:51 -0700 Date: Mon, 15 Dec 2003 16:54:51 -0700 From: David Bear In-reply-to: <"from fgleiser"@cactus.fi.uba.ar> To: Fernando Gleiser Message-id: <20031215165451.I32172@asu.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i References: <20031215163033.H32172@asu.edu> <20031215203734.S95689-100000@cactus.fi.uba.ar> cc: David Bear cc: freebsd-questions@freebsd.org Subject: Re: awk question, maybe X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 23:56:47 -0000 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"