Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Remove the ^M Character from a Document

by thaigrrl (Monk)
on Jan 04, 2001 at 23:15 UTC ( #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>
  • Comment on Re: Remove the ^M Character from a Document

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
Node Status?
node history
Node Type: note [id://49827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-08-21 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (204 votes). Check out past polls.

    Notices?