How to remove ^M character

Paul Beard paulbeard at mac.com
Fri Aug 1 15:45:50 PDT 2003


 
On Friday, August 01, 2003, at 01:31AM, Anil Garg <anilg at 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/>


More information about the freebsd-questions mailing list