I run sed to do some substitution on windows and I noticed that it automatically converts line endings to Unix (\\n). Is there an option to tell sed to use Windows line endi
I've found that sed-4.4.exe from https://github.com/mbuilov/sed-windows is pure win as it
-b mode-i mode-z mode with \0 delimeters instead of \n which may be handy sometimes tooSee also list of sed options and list of all windows sed ports.
Note that gnuwin32 sed 4.2.1 does corrupt line endings in -bi mode and doesn't have -z mode at all.