procmail
[Top] [All Lists]

Re: character substitution in $VARIABLE

2003-11-07 07:56:08
Lukreme wrote:

Simple, use sed

sed s/\./-/g

(eg: users-lists-freeswan-org) preferably without using sed.


tr '.' '-'

The tr executable is about 60% the size of the sed executable, whether tr is quicker or requires less memory space I don't know.


_______________________________________________
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>