What, switch to perl for the task? Heresy!
If you already have the file open in a buffer, type C-x RET f unix RET and save the file. It’s now saved without the ^Ms. If you haven’t opened the file yet, type C-x RET c unix C-x f filename RET
There’s probably something in the menus for this, but I never use them.
Oh, and in perl, another way to do it (heh) is perl -pi -le ‘s/r$//’ file.txt. It’ll do the work in-place.
This comment looks a lot nicer with paragraphs, but the blog seems to strip them out.
blogsearch.google.com lets me search for stuff in blogs, and also helpfully gives me an Atom feed. That’s how I find your posts; I have a search defined for ‘emacs’.
What, switch to perl for the task? Heresy!
If you already have the file open in a buffer, type C-x RET f unix RET and save the file. It’s now saved without the ^Ms. If you haven’t opened the file yet, type C-x RET c unix C-x f filename RET
There’s probably something in the menus for this, but I never use them.
Oh, and in perl, another way to do it (heh) is perl -pi -le ‘s/r$//’ file.txt. It’ll do the work in-place.
This comment looks a lot nicer with paragraphs, but the blog seems to strip them out.
blogsearch.google.com lets me search for stuff in blogs, and also helpfully gives me an Atom feed. That’s how I find your posts; I have a search defined for ‘emacs’.