I often use
aptitude combined with
grep when I want to list certain packages available or installed on my system, but I noticed that when I add
| grep, the output lines look a little bit different.
Here's a pure
dpkg output, the first command was typed when the terminal was smaller, the second one when the terminal was maximized:
As you can see, the output differs depending on the size of the window -- the spaces are reduced in the case of a smaller one.
Now, what happens when we add
A part of the first output was dropped to the second line. But when I maximised the terminal and typed the command once more, the line is in one piece. Moreover, the columns have the same fixed size (the same spaces between them).
This is an
Both commands were typed in the maximised window, but the
grep line has narrower columns, and some text of the third column was cut off.
Why does it happen? Is there a way to stop
grep from resizing the lines?
I don't know how to add an image without changing its parameters, I hope you see what I'm talking about.