Re: Do not output header line in psql

From: Yaser Raja <yrraja(at)gmail(dot)com>
To: Hans Ginzel <hans(at)matfyz(dot)cz>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Do not output header line in psql
Date: 2015-02-02 16:48:45
Message-ID: CALkbEVnNqHN=c1GDsr6a8x3PKtQMD+hEHOtXNQTbm=EXTFM=Rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

You can use "grep -v" to exclude this line as follows:

echo '\dt' |psql -nqaA -Pfooter=off | grep -v 'List of relations'

Regards
Yaser

On Mon, Feb 2, 2015 at 4:00 AM, Hans Ginzel <hans(at)matfyz(dot)cz> wrote:

> Hello!
>
> How can I please get rid of the header line "List of relations" in the
> example below, please?
>
> echo '\dt' |psql -nqaA -Pfooter=off
>
> I can use the -t option, but it also removes the column headers I want to
> keep.
>
> Regards,
> Hans
>
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Hans Ginzel 2015-02-02 17:06:41 Re: Do not output header line in psql
Previous Message Hans Ginzel 2015-02-02 09:00:28 Do not output header line in psql