IIRC

perl -pi -e 's/\r//' <filename>

works very well also...

Brent



                                                                                       
                                          
                    [EMAIL PROTECTED]                                              
                                          
                    Sent by:                                                   To:     
[EMAIL PROTECTED]                        
                    beginners-return-6929-Brent_Michalski=mastercard.co        cc:     
                                          
                    [EMAIL PROTECTED]                                                 
Subject:     Re: Problems with ^M                 
                                                                                       
                                          
                                                                                       
                                          
                    07/16/01 01:12 PM                                                  
                                          
                                                                                       
                                          
                                                                                       
                                          




--Warning-- Answer coming from relative Newbie!

I think you need to press CTRL V and then CTRL M to represent that
character. Caret-M doesn't work. I had this problem with some stuff on
FreeBSD and was pointed to the following link:

http://www.freebsddiary.org/control-m.php

Several solutions are provided.

-John



                    "System

                    Administrator        To:     <[EMAIL PROTECTED]>

                    "                    cc:

                    <sysadmin@lib        Subject:     Problems with ^M

                    by.org>


                    07/16/01

                    11:48 AM







This is for newbies, right? Can anyone tell me why a s/^M//g won't get rid
of the annoying ^M on the end of each line of an imported Paradox database?
Is there a better way? I know this has to be simple, yet I can find no
reference in my plethora of Perl books.
TIA for any and all help - you guys are great and I appreciate the time you
all put into this effort to help folks like me :-)





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to