pipes, dpkg and default screen width (sort of)
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)? thank you so much in advance, ~c -- If you haven't got an agenda, chances are good that you're not doing much useful. --Stephen Frost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: pipes, dpkg and default screen width (sort of)
* charlie derr [EMAIL PROTECTED] [030718 16:15]: Is there an envrironment variable I could set to prevent this? Yes, you can use the COLUMNS variable for this. Yours sincerely Alexander -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]