Is there a *Nix tool that can be used to format command output that is to wide for the screen?

Posted by erikcw on Server Fault See other posts from Server Fault or by erikcw
Published on 2010-04-17T03:17:01Z Indexed on 2010/04/17 3:23 UTC
Read the original article Hit count: 331

Filed under:
|
|

I'm running

psql -U postgres template1 -c "select * from pg_stat_activity"

and the output is to wide for my terminal. Is there a *nix command I can use to prevent the output form wrapping? Maybe a setting in screen that enables virtual horizontal scrolling?

© Server Fault or respective owner

Related posts about linux

Related posts about command-line