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 carriage return and keep linefeed characters. Is Hexl mode the right way to do this?
(in hexl mode) I'm not sure that you can delete characters. I've always converted them to spaces or some other character, switched to the regular text editor, and deleted them there.
No need to find replace. Just use.
You can also set the file encoding through
There's also a command-line tool called unix2dos/dos2unix that exists specifically to convert line endings.