When I do
The output gets nicely trimmed to the width of my terminal, so that long process descriptions don't take more than one line. However, if I pipe it into anything else, the long lines return.
I realize this is a proper behavior, since ps is no longer outputting to a tty and the entire output might be crucial for processing. What I want is another util that will crop the output back when I'm done.
I want to be able to do something like this:
ps aux | grep -v 'www-data' | nowrap
nowrap is the imaginary tool which I'm looking for. It will make sure long lines get cropped and not overflow.
Is there something like this?