On Fri, Jul 16, 2004 at 08:33:22AM +0100, Robin Bowes quoth: > It looks vaguely perl-like, doesn't it? However, this is a chunk from > a maildrop mailfilter file. I don't *think* maidrop incorporates any > "repalce" functionality. > > If it were that easy I would have just done it! As it is I believe I > would have to use some sort of external program to munge the dots, and > I'd rather avoid that if at all possible. I've already got two calls > to external programs in my delivery script and I don't want to launch > perl for each delivery!
Well, for a simple thing like this, you don't have to use perl. Sed will give you regex translation. And if you're just converting one character into another, you can use tr. | sed 's/\./_/g' or | tr . _ ~Kyle -- People demand freedom of speech to make up for the freedom of thought which they avoid. -- Soren Aabye Kierkegaard (1813-1855)
pgpMYyKm0banp.pgp
Description: PGP signature
