This is fairly obvious stuff I guess but it has troubled me for a long time. Some programs on Linux don't spit out their results to stdout. Instead they start a little program similar to less. So what is a console nerd to do?

Pipe it cat! I don't know why I've never thought of this before:


$ psql -l | cat

Comments

Your email will never ever be published.

Previous:
Upgrading to Ubuntu Lucid Lynx and downgrading to Python2.4 and Python2.5 May 11, 2010 Linux
Next:
Review: Django 1.1 Testing and Debugging May 20, 2010 Django
Related by category:
set -ex - The most useful bash trick of the year August 31, 2014 Linux
brotli_static in Nginx November 8, 2024 Linux
Be very careful with your add_header in Nginx! You might make your site insecure February 11, 2018 Linux
Linux tip: du --max-depth=1 September 27, 2007 Linux
Related by keyword:
Connecting with psycopg2 without a username and password February 24, 2011 Python
How I performance test PostgreSQL locally on macOS December 10, 2018 Web development, PostgreSQL, macOS
Conditional aggregation in Django 2.0 January 12, 2018 Python, Django, PostgreSQL
Show size of every PostgreSQL database you have February 7, 2018 PostgreSQL