Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing carriage returns from source code

by blakem (Monsignor)
on Sep 06, 2001 at 08:05 UTC ( [id://110492]=note: print w/replies, xml ) Need Help??


in reply to Removing carriage returns from source code

How about:
perl -pi.bak -e 's/\r\n/\n/g' myfile.pl perl -pi.bak2 -e 's/\r/\n/g' myfile.pl
This will translate both Mac EOLs and MS EOLs into Unix like ones.

-Blake

Replies are listed 'Best First'.
Re: Answer: Removing carriage returns from source code
by Anonymous Monk on Aug 07, 2003 at 10:46 UTC
    Where is the answer here?I'm unable to find anywhere. Sateesh.. My mailid:sateesh_7@rediffmail.com
Re: Answer: Removing carriage returns from source code
by Anonymous Monk on Aug 07, 2003 at 10:46 UTC
    Where is the answer here?I'm unable to find anywhere.

Log In?
Username:
Password:

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

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

    No recent polls found