Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Remove the ^M Character from a Document

by thaigrrl (Monk)
on Jan 04, 2001 at 23:15 UTC ( [id://49827]=note: print w/replies, xml ) Need Help??


in reply to Remove the ^M Character from a Document

Or... in solaris you can do:
dos2unix <filename> <newfilename>

Replies are listed 'Best First'.
Re: Re: Remove the ^M Character from a Document
by KM (Priest) on Jan 04, 2001 at 23:28 UTC
    You can get a dos2unix (and unix2dos) for any flavor of UNIX/BSD.

    Cheers,
    KM

Re: Re: Remove the ^M Character from a Document
by mirod (Canon) on Jan 05, 2001 at 01:01 UTC

    The problem is that dos2unix removes ^M, while I often have to replace them by spaces (in the SGML exported by FrameMaker for example), so I end up doing:

    perl -pi e's{\r}{ }g;'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-28 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found