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   Newer Topic  |  Older Topic 
 Stripping ^M from your files
Author: Taz 
Date:   11-02-10 03:17

My contribution to this great site based on hours of trial an error for that annoying ^M added to conf files ftp'd from windows. The solutions on the page didn't work but this finally did:
cat somefile | col -bx > somefile
you can modify the flags to taste.

Reply To This Message
 
 Re: Stripping ^M from your files
Author: Chris Elvidge 
Date:   19-08-10 08:40

Have you tried this? http://www.thefreecountry.com/tofrodos/
Compiles with warnings on FreeBSD.

Reply To This Message
 
 Re: Stripping ^M from your files
Author: Chris Elvidge 
Date:   19-08-10 08:59

Or even better
http://www.cygwin.com/ml/cygwin/1997-10/msg00526/todos.tar.gz

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


 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