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 ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Stripping ^M from your files -- More options
Author: Randall Hopper 
Date:   15-03-00 13:59

tr -d "
" < dosfile.txt


Reply To This Message
 
 RE: Stripping ^M from your files -- More options
Author: Randall Hopper 
Date:   15-03-00 14:01

Well, I see the feedback form toasted
my reply due to backspace strangeness.
Let's try that again:

tr -d "\015" < tst2

Reply To This Message
 
 RE: Stripping ^M from your files -- More options
Author: AngusSF 
Date:   15-03-00 17:26

When I'm editing perl scripts on a Winbox, I use PFE32, freeware editor, which has a Unix/DOS switch which will preserve the ^M-less nature of my HTML files and Perl scripts even while I edit them on your PC. PFE32, while no longer under development and not OSS, is freeware and works nicely in combination with a good FTP client.

PFE32 home page:

http://www.lancs.ac.uk/people/cpaap/pfe/

HTH ...

AngusSF

Reply To This Message
 
 RE: Stripping ^M from your files -- More options
Author: Dan Langille 
Date:   15-03-00 19:31

PFE is a god-send when it comes to file manipulation.

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