Question

i want to convert CR to CR+LF in batch file. Howe can i do this by writing batch file. Please help.

I am taking input from file and in that file i want to change CR to CR+LF

Was it helpful?

Solution

you could use the good old unix command awk:

awk 'sub("$", "\r")' unix.txt > win.txt
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top