From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 07:26:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 BD3BA16A41F for ; Thu, 13 Oct 2005 07:26:52 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D79E43D45 for ; Thu, 13 Oct 2005 07:26:52 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051013072651.YCPA16334.mta10.adelphia.net@default.chvlva.adelphia.net>; Thu, 13 Oct 2005 03:26:51 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id B50CAB589; Thu, 13 Oct 2005 03:26:52 -0400 (EDT) Date: Thu, 13 Oct 2005 03:26:52 -0400 From: Parv To: Philip Hallstrom Message-ID: <20051013072652.GA957@holestein.holy.cow> Mail-Followup-To: Philip Hallstrom , Peter Matulis , freebsd-questions References: <20051013031521.5468.qmail@web60021.mail.yahoo.com> <20051012204909.J78693@wolf.pjkh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051012204909.J78693@wolf.pjkh.com> Cc: Peter Matulis , freebsd-questions Subject: Re: help with shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 07:26:52 -0000 in message <20051012204909.J78693@wolf.pjkh.com>, wrote Philip Hallstrom thusly... > > #!/bin/sh > > newline='\ > ' > > pkg_info -as | \ > tr '\n' ' ' | \ > sed -e 's/Package Size://g' \ > -e "s/(1K-blocks)/$newline/g" |\ > sed -e 's/^ *Information for //' Holy cow, i was going about it all wrong! No wonder it was taking me too long for this; i was parsing some things instead of removing others. - Parv --