How would I get rid of trailing blank line?

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: How would I get rid of trailing blank line?
Date: 2009-04-02 21:33:52
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C04E84A65@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Hi Everybody,

I am using postgres 8.3.4 on linux.
I often use a line like:
psql -tf query.sql mydatabase > query.out

-t option gets rid of the heading and count
report at the bottom. There is a blank line
at the bottom, however. Is there any way to
have psql not give me that blank line?

Thank you for your help.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-04-02 23:01:21 Re: How would I get rid of trailing blank line?
Previous Message Josh Berkus 2009-04-02 21:27:01 Re: [pgsql-www] Mentors needed urgently for SoC & PostgreSQL Student Internships

Browse pgsql-sql by date

  From Date Subject
Next Message Adrian Klaver 2009-04-02 22:20:11 Re: FUNCTION problem
Previous Message Greg Sabino Mullane 2009-04-02 20:56:04 Re: Performance problem with row count trigger