Re: Wierd error for COPY command

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Wierd error for COPY command
Дата
Msg-id web-1385697@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: Wierd error for COPY command  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
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



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Wierd error for COPY command
Следующее
От: "PG Explorer"
Дата:
Сообщение: Re: Wierd error for COPY command