Re: Getting wide ``dpkg -l'' output in scripts and pipes.
On Tuesday 18 May 2004 10:20, Thomas Adam wrote:
> --- Adam Funk <a24061@yahoo.com> wrote:
>
>> (Sorry about the long lines but they illustrate the output I'm
>> talking about.)
>>
>> ``dpkg -l'' on its own in a terminal produces wide output, e.g.:
>
> COLUMNS=200 dpkg -l | pipe | pipe | pipe | more | more | yay
>
> Change the value of 200, if it is too small.
Excellent. I had tried these:
(COLUMNS=200 ; dpkg -l) |head
(COLUMNS=200 && dpkg -l) |head
but got the narrow output. Why do these two fail?
Reply to: