How to convert dos/windows newline to unix newline in bash script?
Posted
by Koran Molovik
on Stack Overflow
See other posts from Stack Overflow
or by Koran Molovik
Published on 2010-04-10T15:03:34Z
Indexed on
2010/04/10
23:23 UTC
Read the original article
Hit count: 389
I bash, how do I convert dos/windows newlines to unix? It must be non-interactive, not like starting vi and typing something in, but a command on the command line that can be put in a script file. The dos2unix and unix2dos commands are not available on the system.
How do I do this with commands like sed/awk/tr?
© Stack Overflow or respective owner