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

Re: Removing Windows newlines

by TStanley (Canon)
on May 14, 2003 at 10:57 UTC ( [id://258028]=note: print w/replies, xml ) Need Help??


in reply to Removing Windows newlines

The following will work, assuming that you are using some form of unix with the vi editor:
:%s/^M//g
To get the control-M character, you would first type control-V, followed by the control-M

This problem also occurs if you are trying to ftp from a Windows system to unix, and you send the file in binary format. Change it to ascii, and that should fix your problem.

TStanley
--------

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found