$ psql -d test -c "select * from sharan_txt" col1 | col2 ----------+-------- apple | banana cat | dog elephant | flag (3 rows)