Converting From CRLF To LF

From SlackWiki
Revision as of 03:37, 2 June 2009 by Erik (talk | contribs) (Copy from old, moved to Tips)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Explanation

There are several ways of converting the CRLF combination to LF and vice-versa. The simplest one under Slackware is to use the tools fromdos and todos, which receive the file from the standard input and write the result to the standard output. They are part of the bin package.

Examples

$ fromdos <input_file >output_file   # Converts CRLF to LF
$ todos   <input_file >output_file   # Converts LF to CRLF