Remove carriage returns from DOS-formatted text files using Vim

Posted About 13 years ago. Visible to the public.

If you need to strip carriage return characters from a text file, you can use Vim:

vim file.txt
:set ff=unix
:wq
Henning Koch
Last edit
Over 11 years ago
Keywords
line, break, line, feed
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2011-05-16 09:47)