2 ms·
For "Remove DOS ^M from ends of lines" most Linux distros (at least) have unix2dos and dos2unix. $ printf "test\r\n" > test.txt $ cat -A test.txt
by staunch 18y ago
For "Remove DOS ^M from ends of lines" most Linux distros (at least) have unix2dos and dos2unix.
$ printf "test\r\n" > test.txt
$ cat -A test.txt
test^M$
$ dos2unix test.txt
dos2unix: converting file test.txt to UNIX format ...
$ cat -A test.txt
test$
- sant0sk1 18y agoif not in your Debian path: apt-get install tofrodos