In emacs, how to strip CR (^M) and leave LF (^J) characters?

前端 未结 10 662
感动是毒
感动是毒 2021-01-31 03:01

I am trying to use hexl mode to manually remove some special chars from a text file and don\'t see how to delete anything in hexl mode.

What I really want is to remove c

10条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 03:35

    Oops. That ^J^M needs to be entered as two literal characters. Use c-q c-j, c-q c-m and for the replacement string, use c-q c-j.

提交回复
热议问题