Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zxmsm-0005mm-BD for pgsql-sql@arkaria.postgresql.org; Sun, 15 Nov 2015 02:17:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zxmsk-0004Mf-Nh for pgsql-sql@arkaria.postgresql.org; Sun, 15 Nov 2015 02:17:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zxmsj-0004Lp-55 for pgsql-sql@postgresql.org; Sun, 15 Nov 2015 02:17:29 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zxmsb-0000Sq-9Y for pgsql-sql@postgresql.org; Sun, 15 Nov 2015 02:17:26 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 341FA1A12BB6 for ; Sat, 14 Nov 2015 18:05:23 -0800 (PST) Date: Sat, 14 Nov 2015 19:17:19 -0700 (MST) From: "david.paulo" To: pgsql-sql@postgresql.org Message-ID: <1447553839377-5873931.post@n5.nabble.com> In-Reply-To: References: Subject: Re: How would I get rid of trailing blank line? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org The sed -e '$d' is nice but it has a downside - it will mask the return code from psql in the case when there is an error -- View this message in context: http://postgresql.nabble.com/How-would-I-get-rid-of-trailing-blank-line-tp2153908p5873931.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql