From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 06:13:42 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 3CEC616A4CE for ; Tue, 16 Dec 2003 06:13:42 -0800 (PST) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 565A943D45 for ; Tue, 16 Dec 2003 06:13:39 -0800 (PST) (envelope-from lancelot@at-vantage.com) Received: from peter.at-vantage.com (adsl-68-89-117-169.dsl.rcsntx.swbell.net [68.89.117.169])hBGEDaoH208618; Tue, 16 Dec 2003 09:13:36 -0500 Message-Id: <6.0.1.1.2.20031216081325.01bde180@mail.at-vantage.com> X-Sender: peter@mail.at-vantage.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Tue, 16 Dec 2003 08:13:36 -0600 To: David.Bear@asu.edu From: "Lance E. Lott" In-Reply-To: <20031215163033.H32172@asu.edu> References: <20031215163033.H32172@asu.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-2713312B; boundary="=======5124542E=======" cc: freebsd-questions@freebsd.org Subject: Re: awk question, maybe X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 14:13:42 -0000 --=======5124542E======= Content-Type: text/plain; x-avg-checked=avg-ok-2713312B; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit man head and man tail At 05:30 PM 12/15/2003, you 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. > >the goal is to write a generalized script that can feed dump with all >the file systems on a box. > >any pointers? >-- >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" >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003 --=======5124542E======= Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-2713312B Content-Disposition: inline --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003 --=======5124542E=======--