Is there a *Nix tool that can be used to format command output that is too wide for the screen?
Try
psql ... | less -S
The -S
option to less
enables horizontal scrolling instead of line wrapping.
If you don't want to (or can't) use a pager for some reason, you can also use cut
:
psql ... | cut -c1-60
This takes only the first 60 characters of each line. No scrolling however.