Project

General

Profile

Feature #771

Updated by Daniel Curtis almost 9 years ago

Once in a while I will download a config file that contains ^M characters at the end of each line. This can easily be fixed using vi. 

 * Open the text file: 
 <pre> 
 vi ~/somefile.txt 
 </pre> 

 * Then use the following command to delete all matches of ^M; make sure to use *CTRL+V* and *CTRL+M* to create the @^M@ character, or else nothing will happen: 
 <pre> 
 :%s/^M// :%s/^M/d 
 </pre>

Back