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

Re: pipes, dpkg and default screen width (sort of)



On Fri, Jul 18, 2003 at 10:15:03AM -0400, charlie derr wrote:
> Hi,
> 	Often I find myself executing the following:
> 
> $ dpkg -l '*foo*'
> 
> to find all packages with foo in the name.
> When instead I look for only installed foo packages as follows:
> 
> $ dpkg -l '*foo*' | grep ii
> 
> the output is truncated, and if there's a foo package with a
> particularly long package name, I won't see the full name.
> 
> Is there an envrironment variable I could set to prevent this?
> Or some other workaround simpler than redirecting the first
> command to a temporary file (and then using grep on that)?

try COLUMNS=200 dpkg -l ...

HTH,
jc



Reply to: