On Wed, Jul 31, 2002 at 03:57:13PM -0700, Michael Elkins wrote: > > While this might look simple, it's more difficult to implement than you > might think. Why? Becuse the regexp here is not just one regular
No, I know how difficult it is. ;) > At any rate, your example above can be solved as follows: > #!/bin/sh > for i in ~/Mail/friends.*; do > echo "folder-hook $i my_hdr From: <jsmith-`echo $i|sed >'s;^.*\.;;'`@friends.domain.org>"; > done Yeah, I do something roughly like that, now. I've just always thought it'd be more elegant and generically useful to have backrefs. :) -- rjbs
msg30044/pgp00000.pgp
Description: PGP signature