procmail
[Top] [All Lists]

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

2003-06-13 05:55:27


--On Friday, June 13, 2003 11:39 AM +0100 Nancy McGough <nm-reverse-spam-filter(_at_)ii(_dot_)deflexion(_dot_)com> wrote:

On 12 Jun 2003 Tom Most (webdr(_at_)sonic(_dot_)net) wrote:
One of the include files was in PC format.

Thanks for the clue!


I discuss this in my Procmail Quick Start in this section:

 <http://www.ii.com/internet/robots/procmail/qs/#unixASCII>

I suggest that people use the Unix 'file' command to see if a
file contains a CRLF. Unfortunately not all versions of 'file'
support this. Does anyone have suggestions for easy ways for a
newbie to find out if a file contains a CRLF?



"ex"? (Can't get much simpler ;-)

On a Solaris box...

host% file check.txt
check.txt:      commands text

host% ex check.txt
"check.txt" 97 lines, 5177 characters
:1
Return-Path: <procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>^M


Richard

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

<Prev in Thread] Current Thread [Next in Thread>