SuSE Support Database

Title: CR/LF -- Line separation under DOS and Unix

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

CR/LF -- Line separation under DOS and Unix

Symptom:

Cause:

The ^M simply represents the additional CR in front of the Linefeed.

There is probably noone who knows, why this is done this way by DOS.

Solution:

So where are these programs ?

dos2unix and unix2dos are no real programs but aliases for the program recode (package recode, series ap).

After a standard installation this program is available and you have to enter the following lines into /etc/profile :

alias unix2dos='recode lat1:ibmpc'
alias dos2unix='recode ibmpc:lat1'
Afterwards these commands are available at least in the standard shell bash . If you use another shell you might have to execute these commands manually

---

Keywords: LINE, SEPARATOR, DOS, CR/LF, UNIX2DOS, DOS2UNIX

---

Mainpage ---- Searchform ---- History ---- Versions ---- Categories ---- Contents
Deutsch
---

SDB-crlf, Copyright SuSE GmbH, Nuremberg, Germany - Version: 13. Mar 1998
Impressum - Last generated: 24. Feb 1999 14:45:40 by maddin with sdb_gen 1.00.0