On Fri, Nov 07, 2003 at 09:08:14AM -0600, David W. Tamkin wrote:
Louis-David Mitterrand asked:
I'd like to convert these dots to dashes (eg:
users-lists-freeswan-org) preferably without using sed.
You could use a recursive SWITCHRC within procmail and not call any
outside programs at all, but it's a pain to write, and it's probably no
more efficient than simply running tr (well, a shell and tr) as Ian
As you've already got to do an `echo | something` (implying a shell) you
might want to find out whether your shell itself can do the substitution.
If your $SHELL is one of bash2, ksh93, or zsh4:
The trailing semicolon is to force procmail to spawn a shell, which has
the side-effect of preventing procmail from doing the substitution itself
(and producing a "Bad substitution" error).
procmail mailing list