From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Wierd error for COPY command
Date: Fri, 26 Apr 2002 10:15:45 -0700
Message-ID: <web-1385697@davinci.ethosmedia.com> (raw)
In-Reply-To: <web-1385663@davinci.ethosmedia.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: Wierd error for COPY command
In-Reply-To: <web-1385697@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox