user375191
user375191

Reputation: 123

Carriagereturn(CR) to LF+CR

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

Upvotes: 1

Views: 535

Answers (1)

Oliver
Oliver

Reputation: 236

you could use the good old unix command awk:

awk 'sub("$", "\r")' unix.txt > win.txt

Upvotes: 1

Related Questions