pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Explorer <pgmail@pgexplorer.com>
To: 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 19:25:38 +0200
Message-ID: <001601c1ed47$632ae120$c80ba8c0@sabex.com> (raw)
References: <web-1385697@davinci.ethosmedia.com>

need dos2unix do you?

here is a script

#!/bin/sh
tr -d '\015' < $0 > $1

chmod +x dos2unix

usage : dos2unix dosfile unixfile


http://www.pgexplorer.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
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




view thread (5+ messages)

Message-ID: <001601c1ed47$632ae120$c80ba8c0@sabex.com>
Permalink:  ../001601c1ed47$632ae120$c80ba8c0@sabex.com/
Also on:    postgresql.org/message-id/001601c1ed47$632ae120$c80ba8c0@sabex.com

 · 

reply

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: pgmail@pgexplorer.com, josh@agliodbs.com, tgl@sss.pgh.pa.us
  Subject: Re: Wierd error for COPY command
  In-Reply-To: <001601c1ed47$632ae120$c80ba8c0@sabex.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