Re: Do not output header line in psql

Поиск
Список
Период
Сортировка
От Yaser Raja
Тема Re: Do not output header line in psql
Дата
Msg-id CALkbEVnNqHN=c1GDsr6a8x3PKtQMD+hEHOtXNQTbm=EXTFM=Rg@mail.gmail.com
обсуждение исходный текст
Ответ на Do not output header line in psql  (Hans Ginzel <hans@matfyz.cz>)
Ответы Re: Do not output header line in psql  (Hans Ginzel <hans@matfyz.cz>)
Список 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@matfyz.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

В списке pgsql-novice по дате отправления:

Предыдущее
От: Hans Ginzel
Дата:
Сообщение: Do not output header line in psql
Следующее
От: Hans Ginzel
Дата:
Сообщение: Re: Do not output header line in psql