procmail
[Top] [All Lists]

Re: Ways to check for CRLF? (Was: Error???)

2003-06-13 10:02:31
On Fri, Jun 13, 2003 at 04:29:59PM +0000, chrisp(_at_)finger8(_dot_)com wrote:

    $ sed 's/^M$//' < crlf > lf

This uses the ^V^M trick I mentioned above. It's very important that the
two files are different filenames, else you'll overwrite your recipe stuff.
At the risk of turning this into a sed-users list, this is a commonly asked
question there, and googling will turn up a multitude of results for more
information.

Is this any better than dos2unix command (which would seem much easier
to explain to less experienced users). 

-- 
Hal Burgiss
 

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail