procmail
[Top] [All Lists]

Re: Which characters to quote ?

2005-04-04 10:02:32
On Apr 4, 2005 8:39 AM, Michelle Konzack <linux4michelle(_at_)freenet(_dot_)de> 
wrote:

OK, previously I have used      tr -d $'\t' |tr -d $'\n' |tr -d $'\r'
which was working fine, but
now I have tried                td -ds '[\n\t\r]' ' '
which does not work.

Presumably "td" is a transcription error.
 
My try to use                   td -ds $'[\n\t\r]' ' '
ends in a error message

What error message?  And why the three consecutive quotes at the end
of that string?

                                Any suggestions ?

There's a lot of variation in implementations of tr so there might be
a number of different reasons that this would fail.  I've had good
luck using octal escapes with tr rather than \r et al.  So try
    tr -ds '\011\012\015'

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail