Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 488C2474E4E for ; Fri, 26 Apr 2002 13:15:47 -0400 (EDT) Received: from [209.122.114.82] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1385697; Fri, 26 Apr 2002 10:15:45 -0700 From: "Josh Berkus" Subject: Re: Wierd error for COPY command To: Tom Lane Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 26 Apr 2002 10:15:45 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200204/330 X-Sequence-Number: 7594 Tom, > Yes, you're right. Apparently I have /r/n newlines, plus a ZL string > in the last field indicating Null. I know that there's a command > line > utility to convert DOS newlines into UNIX newlines; could anyone give > me a name? Answered my own question. The utility "dos2unix" (which is a script file on top of "recode") is included in most Linux distributions. It works as follows: either: dos2unix filename or: dos2unix filename newfilename ... depending on your distro. Thanks! -Josh Berkus