Preserve line endings

后端 未结 5 1444
耶瑟儿~
耶瑟儿~ 2020-12-02 11:53

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

5条回答
  •  孤街浪徒
    2020-12-02 12:30

    Alternatively, (the cygwin version of) perl -pe doesn't seem to have this problem.

提交回复
热议问题