help with shell script
Parv
parv at pair.com
Thu Oct 13 00:26:52 PDT 2005
in message <20051012204909.J78693 at 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
--
More information about the freebsd-questions
mailing list