From: T E Schmitz <mailreg@numerixtechnology.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: psql -F <TAB>
Date: Thu, 16 Nov 2006 12:09:34 +0000
Message-ID: <455C54FE.5090902@numerixtechnology.de> (raw)
In-Reply-To: <20061116115812.GB19298@alvh.no-ip.org>
References: <455C4918.4020604@numerixtechnology.de>
<20061116115812.GB19298@alvh.no-ip.org>
Alvaro Herrera wrote:
> 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>.
True.
Ctrl-V <tab> works fine on the command-line.
> (Maybe it would work to use '\t' as well, not sure if psql interprets
> that.)
Unfortunately, it doesn't. As far as I know -F literally wants a <tab.
character and how I get it in really is a shell question.
Sorry for having gone off-topic. I was just hoping something like \t
could be passed, too.
--
Regards,
Tarlika Elisabeth Schmitz
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: mailreg@numerixtechnology.de
Subject: Re: psql -F <TAB>
In-Reply-To: <455C54FE.5090902@numerixtechnology.de>
* 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