PeterSmith.Org

Pesky ^M


Some files (often created under DOS/Windoze) have a ^M on the end of the line. This is okay under DOS/Windows but it is an ugly pain under a real OS (such as FreeBSD).

To remove the ^M for a directory of files you can use the following script:

perl -pi -e "s/r//g"

It works a treat.

If you webmention this page, please let me know the URL of your page.

BTW: Your webmention won't show up until I next "build" my site.

Show all the shares aka https://keithjgrant.com/posts/2019/01/low-friction-workflow-for-notes/