procmail
[Top] [All Lists]

RE: Question about simple sorting.

2005-08-27 17:01:53
From: Dallman Ross [mailto:dman(_at_)nomotek(_dot_)com] 

Thus, if the goal is to delete newlines and carriage returns (if
any) and compress all spaces to one, it seems as if 
Michelle's version, while apparently still broken, is close.

She [Michelle K.] had written:

   mimedecode |tr -ds '[\n\t\r]' ' '


I would think this should work:

   mimedecode | tr -s '[\n\t\r]' ' '

That is, I only removed the "d".

Thinking more about it, I think it doesn't matter if the
"d" is there or not.  In other words, her syntax also works.

Someone emailed me that it may not work with all versions of
tr.  It's true that tr has different versions around, so
it's not exactly portable.

Dallman


____________________________________________________________
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