convert dos/windows newline to unix newline in bash script
- by Koran Molovik
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?