Live Chat!

Convert newline between UNIX & DOS

          0 votos

February 10th, 2007 toydi

There are several ways to convert newlines between UNIX-style (LF) and DOS-style (CR+LF).
I like todos, fromdos commands (or unix2dos, dos2unix) for their simplicity. Sometimes they are not installed by default, try to search your repository for a tofrodos package .
Let’s try. Simply create a text file, foo.txt that contains a newline:
aaa
bbb
A UNIX newline (LF) is [...]

Posted in Text Manipulation, fromdos, hexdump, todos | Hits: 13234 | No Comments »