linux - How to convert DOS/Windows newline (CRLF) to Unix newline (\n) in bash script? - Stack O

linux - How to convert DOS/Windows newline (CRLF) to Unix newline (\n) in bash script? - Stack O

瀏覽:509
日期:2025-10-02
How can I programmatically (i.e., not using e.g. vi) convert DOS/Windows newlines to Unix? The dos2unix and unix2dos commands are not available on certain systems, how can I ......看更多