Re: psql -F <TAB>

From: Joe Conway <mail(at)joeconway(dot)com>
To: mailreg(at)numerixtechnology(dot)de
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: psql -F <TAB>
Date: 2006-11-16 12:37:02
Message-ID: 455C5B6E.1070403@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

T E Schmitz wrote:
> 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?

> Sorry for having gone off-topic. I was just hoping something like \t
> could be passed, too.
>

Try:
psql -A -t -U $DBUSER -d $DB -c "$QUERY" -F $'\t'

see:
man bash

HTH,

Joe

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jonah H. Harris 2006-11-16 13:18:00 Re: recursive SQL and with clause
Previous Message T E Schmitz 2006-11-16 12:09:34 Re: psql -F <TAB>