procmail
[Top] [All Lists]

Re: multiply by -1

2005-07-07 08:39:17
Dallman Ross schreef:
Ruud:

      *$ 0$MATCH ^ 0
The '0$MATCH' prevents a log-line when MATCH is empty.

Very good.  I had been using
   * $ ${MATCH:-0} ^ 0
But prefixing a zero is much easier.

It is only good when MATCH can be 
either empty or a string of digits '[0-9]+'
which is the case where I used it.

-- 
Grtz, Ruud

____________________________________________________________
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

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