I have a file that only uses
\n for new lines, but I need it to have
\r\n for each new line. How can I do this?
For example, I solved it in Vim using
:%s/\n/\r\n/g, but I would like to use a script or command-line application. Any suggestions?
I tried looking this up with
grep, but I got immediately confused by the escape sequence workarounds (I am a bit green with these commands).
If interested, the application is related to my question/answer here