Re: psql -F <TAB>

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: T E Schmitz <mailreg(at)numerixtechnology(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: psql -F <TAB>
Date: 2006-11-16 11:58:12
Message-ID: 20061116115812.GB19298@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

T E Schmitz wrote:
> I have written a shell script to export data:
>
> psql -A -t -U $DBUSER -d $DB -c "$QUERY" -F ' '
>
> Currently, I am using spaces as field separator but what I really want
> is tabs.
>
> How can I specify a TAB character with the -F option?

This is really a shell question. On those I know, you'd type ^V <tab>.
(Maybe it would work to use '\t' as well, not sure if psql interprets
that.)

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message T E Schmitz 2006-11-16 12:09:34 Re: psql -F <TAB>
Previous Message T E Schmitz 2006-11-16 11:18:48 psql -F <TAB>