Project

General

Profile

Actions

Feature #771

closed
DC DC

Remove Trailing ^M Line Feed Character From Files

Feature #771: Remove Trailing ^M Line Feed Character From Files

Added by Daniel Curtis almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Command-Line Help
Target version:
Start date:
03/06/2016
Due date:
% Done:

100%

Estimated time:
0:06 h
Spent time:

Description

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:
    vi ~/somefile.txt
    
  • 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:
    :%s/^M//
    

DC Updated by Daniel Curtis almost 10 years ago Actions #1

  • Status changed from New to Resolved
  • Start date changed from 03/05/2016 to 03/06/2016
  • % Done changed from 0 to 100

DC Updated by Daniel Curtis almost 10 years ago Actions #2

  • Description updated (diff)

DC Updated by Daniel Curtis over 9 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom