Joe Conway wrote:
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 ' '

How can I specify a TAB character with the -F option?

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

You're a star - that does the trick!


Regards,

Tarlika Elisabeth Schmitz

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to