Re: Error on import

From: Richard Huxton <dev(at)archonet(dot)com>
To: "John" <johnp(at)totcon(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error on import
Date: 2002-10-25 09:20:07
Message-ID: 200210250920.07162.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 25 Oct 2002 3:38 am, John wrote:
> Thanks Tom.. I had a buddy who works with perl give me a little help
> since I couldn't get vim to see the \r.. the following one liner got me
> where I needed to be. Thanks again.
>
> cat origfile|perl -e 'while (<>){$_ =~ s/\r//g;print $_;}' > prepfile

Or you could:

perl -p -e 's/\r//g' < origfile > prepfile

It's perl so TMTOWTDI

--
Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Garabedian 2002-10-25 11:34:12 Debugging guidance
Previous Message Leif Jensen 2002-10-25 09:19:11 Re: Linking 2 or more databases (new incident).