[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Listing only the package names with dpkg?



Preben Randhol <randhol@pvv.org> wrote:
>"Christopher W. Aiken" <cwaiken@telerama.com> wrote on 03/10/2000 (14:49) :
>> I'm new to Debian (not to Linux/UNIX) but you could pipe the
>> results through "cut".  For example:
>> 
>> dpkg -l | cut -c 5-30 > my_log_file
>> 
>> This will output only columns 5-30 of the output.
>
>yes, but dpkg -l doesn't show the entire pacakge name.

Ah, this will be fixed soon (i.e. it's in the version of dpkg in CVS,
I'm told), by allowing you to set the COLUMNS environment variable to
say how wide you want the output to be. Or you could just resize your
xterm, if you're using one and not the console; you might need to type
'reset' to force the terminal to notice the resize, if it hasn't
already.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: