VDS Sphera Knowledge Base

Main / Browse Categories / Unix / Linux / How can I remove the ^M characters in my files?

Print article Print Article    Email article Email Article

How can I remove the ^M characters in my files?
Here are some tools for removing those pesky ^M characters after editing a file in DOS or Windows.

1) Matt Wright's code snippet:
http://www.scriptarchive.com/scripts/snippets/rm_cont_m.pl
2) DOS2UNIX:
http://userpage.chemie.fu-berlin.de/~winkelma/Misc/Perl/Scripts/Dos-Unix/
3) Using VI's search and replace feature:
http://www.tech-recipes.com/modules.php?name=Recipes&rx_id=150

User Comments
How can I remove the ^M characters in my files?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 How do I create a symbolic link?
 I need to get "xyz" package installed for our program to work and am having issues compiling it.
 How can I change permissions on my files?
 I noticed "file quota" statistics in my Control Panel. Can you explain what this means as I was not aware there were any limitations on the amount of files that could be placed im my VDS?
 Security Scan Vulnerability False Positives

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »