Robert Guthrie wrote:

> On Wednesday 15 November 2000 11:43, Moritz Schulte wrote:
> > Robert Guthrie <[EMAIL PROTECTED]> writes:
> > > I'm using this command:
> > > dpkg -l * | egrep "^ii" | grep -i kde
> <snip>
> > > What I'm trying to get is the full version information.  I only care
> > > about that and the package name.
> >
> > You can do it with awk: dpkg -l | awk '{ print $2 " " $3 }'
> >
> >       moritz
>
> That didn't work either.  It seems that anything I run through a pipe gets
> truncated.  I'm not sure why.  If I just run dpkg -l all by itself, I get a
> nicely spaced output that I could cut and past from, but that would require
> me to do the work that my computer should do for me ;-).  Any suggestions?

I'm not certain what you mean by truncated (cut off?)  but if you simply mean 
that
you want a nicely formated line try.


dpkg -l | gawk ' /^ii/ && /kde/ {printf ("%-20.20s %s\n", $2,$3)}'

John

--

Powered by the Penguin



Reply via email to