Re: Need help for import of text file

Поиск
Список
Период
Сортировка
От Peter Bex
Тема Re: Need help for import of text file
Дата
Msg-id 20121215212215.GN4254@frohike.homeunix.org
обсуждение исходный текст
Ответ на Re: Need help for import of text file  (Peter Bex <Peter.Bex@xs4all.nl>)
Ответы Re: Need help for import of text file
Список pgsql-general
On Sat, Dec 15, 2012 at 10:16:55PM +0100, Peter Bex wrote:
> A simple sed(1) expression should do the trick:
>
> sed -E 's/ +/ /g' old-file > new-file

I just remembered where I could check, and the GNU sed equivalent is:

sed -r 's/ +/ /g' old-file > new-file

Sorry for the confusion.

Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                            -- Donald Knuth


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

Предыдущее
От: Peter Bex
Дата:
Сообщение: Re: Need help for import of text file
Следующее
От: Dat Huynh
Дата:
Сообщение: Problem on foreign key referring to a parent table in PostgreSQL