Command to Convert Line Endings from CR+LF (Windows) to LF (Linux) [Linux, macOS Edition]
I’ll introduce how to convert line endings from CR+LF (Windows) to LF (Linux) on Linux and macOS.
tr '\\r' '\
' < input.txt > output.txt
That’s all from the Gemba on wanting to batch convert line endings from CR+LF (Windows) to LF (Linux) using commands on Linux and macOS.