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.

About this Entry

This page contains a single entry by Peter Smith published on March 22, 2003 6:33 PM.

The server saga continues was the previous entry in this blog.

Psychodrama is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.3-en