[EMAIL PROTECTED] wrote on 11/21/2005 04:39:19 
PM:
> Date: Mon, 21 Nov 2005 13:52:21 -0600
> From: "Gomez, Juan" <[EMAIL PROTECTED]>
> Subject: help on a plain text file
> To: "[EMAIL PROTECTED]"
>    <[email protected]>
> Message-ID:
> <[EMAIL PROTECTED]>
> 
> Content-Type: text/plain;   charset="us-ascii"
> 
> 
> 
> Hello guys I have a question
> 
> I have a file that has this at the end of each line " ^M" I know is
> because it was on a excel file that I turn into a comma separated file
> 
> But how can I delete that little thingy?
> 
> 
> Thanks 
> 
> Here is an example:
> 
> data1;123123123;data2;data3^M  <----- see this is what I want to delete
> 
> 
Armando-

I know someone who wrote a perl program to fix this that i have lying 
around somewhere, however, I also know that if you have it you have a 
posix os which has a VASTLY more efficient tool built in, so i'll give you 
that instead:

dos2unix <file>


use that. dos2unix is related to two other tools: unix2dos and mac2unix

mac2unix isn't always on posix systems anymore, the other two are. you can 
man them. 
> 
> 
> 
> Armando Gomez Guajardo 
> Process Engineer
> Work Ph   956 547 6438 
> Beeper    956 768 4070
> 
-Josh
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to