Text
dos2unix
Convert text files from DOS line endings to Unix format.
textfilterformat
Additional Notes
dos2unix is a text-processing command used to convert text files from DOS line endings to Unix format. It converts CRLF line endings (Windows/DOS style) to LF line endings (Unix style). Use the companion unix2dos for the reverse conversion.
Syntax
dos2unix [options] [file...]
Parameters
options: Flags that change howdos2unixbehaves.file: Text file to read or process.
Common Options
--help: Show command help when supported.--version: Show version information when supported.
Examples
dos2unix --help
man dos2unix
Practical Notes
Options can vary by distribution and package version. Use man dos2unix, dos2unix --help, or the package documentation for exact syntax.