dos2unix
dos2unix is a command-line utility designed to convert text files between DOS/Windows line endings (CRLF) and Unix-like line endings (LF). The package often includes a companion tool, unix2dos, for performing the reverse conversion. It is widely used on Unix-like systems such as Linux and BSD, and is also available on macOS and Windows through ports and compatibility layers like Cygwin, MSYS2, or Windows Subsystem for Linux. As open-source software, it is maintained by multiple contributors across platforms.
The primary purpose of dos2unix is to normalize line endings in text files to match the conventions
Typical usage involves either in-place conversion or writing to a separate output file. For example, dos2unix
While there are multiple implementations and variants, the core functionality remains the same: translating between CRLF