in reply to Re: Remove the ^M Character from a Document
in thread Remove the ^M Character from a Document

The problem is that dos2unix removes ^M, while I often have to replace them by spaces (in the SGML exported by FrameMaker for example), so I end up doing:

perl -pi e's{\r}{ }g;'