Re: Error on import - Mailing list pgsql-general

From Richard Huxton
Subject Re: Error on import
Date
Msg-id 200210250920.07162.dev@archonet.com
Whole thread Raw
In response to Re: Error on import  ("John" <johnp@totcon.com>)
List 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

pgsql-general by date:

Previous
From: "Shridhar Daithankar"
Date:
Subject: Re: need help with a table shrinker
Next
From: Leif Jensen
Date:
Subject: Re: Linking 2 or more databases (new incident).