💻 Software
Util for trimming output to terminal width?
Fresh7 days ago
Mar 15, 20267194 viewsConfidence Score0%
0%
Problem
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 outpu…
Error Output
ps aux
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Util for trimming output to terminal width?
Low Risk
You can use the command to slice the output. For example: This will keep only the first 80 characters of each line. You can of course set that to any width you want. If using the bash commandline, you could do this: If the output has tabs, then the …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix