Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 03:26:52 -0400
From:      Parv <parv@pair.com>
To:        Philip Hallstrom <freebsd@philip.pjkh.com>
Cc:        Peter Matulis <petermatulis@yahoo.ca>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: help with shell script
Message-ID:  <20051013072652.GA957@holestein.holy.cow>
In-Reply-To: <20051012204909.J78693@wolf.pjkh.com>
References:  <20051013031521.5468.qmail@web60021.mail.yahoo.com> <20051012204909.J78693@wolf.pjkh.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

-- 




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