The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Removing ^M from files
Author: Lars Eighner 
Date:   05-01-03 08:30

The perl one-liner give in the article on this subject seems to me to be needlessly confusing.
I use: perl -pi -e 's/\r//g' <filespec>
It appears to me to work and there is no question of how to enter a ^M.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Removing ^M from files   new
Lars Eighner 05-01-03 08:30 
 Re: Removing ^M from files   new
parv 06-01-03 19:14 
 Re: See also   new
Isaac 16-01-03 02:06 
 Re: Removing ^M from files   new
Erin 13-01-03 00:11 
 See also   new
Dan Langille 14-01-03 22:35 
 Re: See also   new
Erin 14-01-03 23:21 
 Re: See also   new
Dan Langille 15-01-03 02:20 
 Re: See also   new
Dan Langille 15-01-03 02:23 
 Re: Removing ^M from files   new
Dr.Lektroluv 03-02-03 16:41 
 Re: Removing ^M from files   new
Dr.Lektroluv 03-02-03 16:43 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org