On Sat, Oct 28, 2006 at 04:16:04PM -0400, Douglas Tutty wrote:
> On Sat, Oct 28, 2006 at 09:13:54PM +0800, linux china wrote:
> > I don't mean adjusting the columns. you can see the package name is
> > cut, the words after libhtml-tree-p is missing, so I just want to
> > output the name & description which are needed, other information like
> > version isn't needed, so how to just output the package name &
> > description?
> > 
> > $ dpkg -l 'libhtml*'
> > ||/ Name           Version        Description
> > +++-==============-==============-============================================
> > un  libhtml-format <none>         (no description available)
> > ii  libhtml-parser 3.55-1         A collection of modules that parse HTML 
> > text
> 
> Checking man dpkg, under -l it says to see dpkg-query for further info.
> Checking man dpkg-query under -l is the same.
>       under -W, is the same as -l except the output can be customized
>       using the --showformat option.
> 
> Try that.
> 

On my system (sarge) the following does what I think you want:

COLUMNS=130 dpkg -l|cut -c4-28,55-|tail +6

YMMV

Cheers,
David

-- 
David Jardine

"Running Debian GNU/Linux and
loving every minute of it."  -L. von Sacher-M.(1835-1895)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to