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.

    Word count: 100 (about 1 minutes)


    Updated: 22 Mar '03 18:33

    Author: Peter Smith


    Section: blog

    Kind: page

    Bundle type: leaf

    Source: blog/2003/03/22/pesky-m/