From: Alvaro Herrera <alvherre@commandprompt.com>
To: T E Schmitz <mailreg@numerixtechnology.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: psql -F <TAB>
Date: Thu, 16 Nov 2006 08:58:12 -0300
Message-ID: <20061116115812.GB19298@alvh.no-ip.org> (raw)
In-Reply-To: <455C4918.4020604@numerixtechnology.de>
References: <455C4918.4020604@numerixtechnology.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: alvherre@commandprompt.com, mailreg@numerixtechnology.de
Subject: Re: psql -F <TAB>
In-Reply-To: <20061116115812.GB19298@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox