Skip to content

dos_dos2unix

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Converts a DOS-type text file to a Unix-type text file. DOS and Unix systems use different methods to identify end-of-line information in text files. DOS, including all versions of Windows, use a carriage return/linefeed pair (CR/LF), while Unix only uses the LF character.

Syntax

(dos_dos2unix source destination)

Parameters

source

The source filename.

destination

The destination file name.

Returns

A qualified path to destination if successful.

nil on error.

Example

Command: (dos_dos2unix "readme.dos" "readme.unix")
"C:\\temp\\readme.unix"

Clone this wiki locally