Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 486F89F9DCD for ; Thu, 16 Nov 2006 07:58:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 72596-10 for ; Thu, 16 Nov 2006 11:58:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 00C1C9F9DAD for ; Thu, 16 Nov 2006 07:58:28 -0400 (AST) Received: from alvh.no-ip.org (200-126-99-175.bk7-dsl.surnet.cl [200.126.99.175]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kAGBwEjO016384; Thu, 16 Nov 2006 03:58:14 -0800 Received: by alvh.no-ip.org (Postfix, from userid 1000) id DAC02C2D33D; Thu, 16 Nov 2006 08:58:12 -0300 (CLST) Date: Thu, 16 Nov 2006 08:58:12 -0300 From: Alvaro Herrera To: T E Schmitz Cc: pgsql-sql@postgresql.org Subject: Re: psql -F Message-ID: <20061116115812.GB19298@alvh.no-ip.org> Mail-Followup-To: T E Schmitz , pgsql-sql@postgresql.org References: <455C4918.4020604@numerixtechnology.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <455C4918.4020604@numerixtechnology.de> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 16 Nov 2006 03:58:15 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/163 X-Sequence-Number: 26815 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 . (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