in message <[EMAIL PROTECTED]>,
wrote Peter Matulis thusly...
Could your please wrap lines around 69 or so characters?
> What I need is the size as the first item (not the second) on each
> line. Then I can use sort.
You can easily specify the column|key to sort on via -k flag ...
{ echo "po
in message <[EMAIL PROTECTED]>,
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
--- Peter Matulis <[EMAIL PROTECTED]> wrote:
>
> --- Philip Hallstrom <[EMAIL PROTECTED]> wrote:
>
> > > 1. This gives me the amount of space (kB) taken up by the 10 largest
> > > ports:
> > >
> > > $ pkg_info -as | grep ^[0-9] | sort -gr | head -10 | cut -c 1-6
> > >
> > > 2. Using one figure
--- Philip Hallstrom <[EMAIL PROTECTED]> wrote:
> > 1. This gives me the amount of space (kB) taken up by the 10 largest ports:
> >
> > $ pkg_info -as | grep ^[0-9] | sort -gr | head -10 | cut -c 1-6
> >
> > 2. Using one figure from above list I produce the details of the
> > corresponding port:
Hi. I am writing up a doc for the fbsd community that covers usage of
ports. I have two commands that allow me to assertain the amount of
disk space being utilized by currently installed ports. I would like to
make a shell script (bourne or bash) out of them but I am not sure how.
1. This g
Hi. I am writing up a doc for the fbsd community that covers usage of ports.
I have two
commands that allow me to assertain the amount of disk space being utilized by
currently
installed ports. I would like to make a shell script (bourne or bash) out of
them but I am not
sure how.
1. This gi