From: Padraig Brady (padraig at domain antefacto.com)
Date: Wed 03 Oct 2001 - 14:27:11 IST
James Cooper wrote:
>I'm editing a C source file in kwrite. Everything looks ok but when I open
>the same file with 'view' there are a load of ^Ms where newlines should
>be. I'm using KDE 2.1.2. How does I be fixing this problem?
view maps to vi on my RH7.1, so the question is how to get
vi to edit DOS format test files:
Note my vi ( 6.0z ALPHA) auto does this, so you must have an older one?
Note my less also handles dos file correctly.
Note also to convert dos files to unix you can do:
tr -d '\r' < file.dos > file.unix
There is a dos2unix command on my system also (redundant IMHO).
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:29 GMT