Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Aug 2003 15:45:48 -0700
From:      Paul Beard <paulbeard@mac.com>
To:        Anil Garg <anilg@niksun.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to remove ^M character
Message-ID:  <8163366.1059777948620.JavaMail.paulbeard@mac.com>

next in thread | raw e-mail | index | archive | help
 
On Friday, August 01, 2003, at 01:31AM, Anil Garg <anilg@niksun.com> wrote:

>Hi,
>
>I ftp'd a file from windows to freebsd....not its every line has ^M at its
>end.
>Is there some command in vi (or some way) by whcih ^M can be removed.
>

got room for one more? 

perl -pi -e s#\\r#\\n#g <your file name>

--
Paul Beard / 8040 27th Ave NE / Seattle WA 98115 /
paulbeard [at] mac [ dot] com / 206 529 8400

weblog @ <http://paulbeard.no-ip.org/movabletype/>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8163366.1059777948620.JavaMail.paulbeard>