Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'dos2unix and unix2dos' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
dos2unix and unix2dos
Authored by: DahDee on Oct 22, '03 01:42:55AM
Another utility to accomplish this is dos2unix and unix2dos.
You can download the package from here:

USAGE: dos2unix [file ...]

When called whithout parameters, the dos2unix utility reads from the standard input, transforming CR/LF pairs into an
LF character and writing it to the standard output. If there's at least one filename specified, the file operands are
processed in command line order, reading from the files specified and overwriting them with the converted version.
It's important to note that the dos2unix utility is the same program as the unix2dos(1) utility. It simply checks its name
to see what operation is expected. If you change the name of the binary, dos2unix will default to converting files from

[ Reply to This | # ]