Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Removing Carriage returns from text files

by mikfire (Deacon)
on Oct 17, 2001 at 23:32 UTC ( #119520=note: print w/replies, xml ) Need Help??


in reply to Removing Carriage returns from text files

I can offer a few suggestions.

Transfer the file to the UNIX box via ftp using ASCII mode. The main thing ASCII mode does is to translate CR/LF to newlines ( and back again ).

On some flavours of UNIX ( it exists on my Solaris boxen but not my fbsd boxen ), there is a command called dos2unix which does the same thing.

None of them perl-based, but they have both worked well for me at different times.

HTH,
mikfire

  • Comment on Re: Removing Carriage returns from text files

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://119520]
help
Chatterbox?
[ww]: or a lot more than (22*2) for /me
[ww]: er -- senior cognitive deficiency: ((22+(22*2))
[ww]: (but pls don't s/senior/senile/ ... not yet
[karlgoethebier]: A bit more audience now: The Impact of Information Sources on Code Security Very interesting IMHO...
[karlgoethebier]: ..it's about copy & paste ;-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-09-25 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?