On 12/27/25 08:57, Tomas Kuchta wrote:
I found they current dos2unicx doesn't remove \r . I am not sure if it has
ever remove them.

That seems odd.  It has always worked for me.

$ cat /etc/debian_version
12.12
$ alias hd='od -A x -t x1z'
$ echo "hello" > hello.txt
$ hd hello.txt
000000 68 65 6c 6c 6f 0a                                >hello.<
000006
$ unix2dos hello.txt
unix2dos: converting file hello.txt to DOS format...
$ hd hello.txt
000000 68 65 6c 6c 6f 0d 0a                             >hello..<
000007
$ dos2unix hello.txt
dos2unix: converting file hello.txt to Unix format...
$ hd hello.txt
000000 68 65 6c 6c 6f 0a                                >hello.<
000006
$ dos2unix --version
dos2unix 7.4.3 (2022-06-05)
With Unicode UTF-16 support.
With native language support.
With support to preserve the user and group ownership of files.
LOCALEDIR: /usr/share/locale
http://waterlan.home.xs4all.nl/dos2unix.html

galen
--
Galen Seitz
[email protected]

Reply via email to