Re: Error on import

From: "John" <johnp(at)totcon(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error on import
Date: 2002-10-25 03:38:42
Message-ID: 000001c27bd8$03f53870$0400a8c0@eclipse
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Tom.. I had a buddy who works with perl give me a little help
since I couldn't get vim to see the \r.. the following one liner got me
where I needed to be. Thanks again.

cat origfile|perl -e 'while (<>){$_ =~ s/\r//g;print $_;}' > prepfile

-----Original Message-----
I think you've got DOS-style newlines (\r\n) in your data file.
Get rid of the carriage return characters (\r) and you'll be set.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2002-10-25 05:16:36 Re: Error on import
Previous Message Tom Lane 2002-10-25 02:28:05 Re: Error on import