Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
^M
at the end of each line under Linux
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.
unix2dos file
, e.g.
cd /tmp cp /etc/printcap . unix2dos printcap
dos2unix file
, e.g.
cd /tmp cp /dos/autoexec.bat . dos2unix autoexec.bat
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