Vim

  • Remove “^M” from a file: open file in Vim, then enter
    :%s/^M