From owner-freebsd-questions Fri Sep 20 05:52:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA05012 for questions-outgoing; Fri, 20 Sep 1996 05:52:54 -0700 (PDT) Received: from donald.iafrica.com (root@donald.iafrica.com [196.31.1.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA04859 for ; Fri, 20 Sep 1996 05:52:41 -0700 (PDT) Received: from donald.iafrica.com (ryan@donald.iafrica.com [196.31.1.30]) by donald.iafrica.com (8.7.6/8.6.12) with SMTP id OAA21799; Fri, 20 Sep 1996 14:52:29 +0200 (SAT) Date: Fri, 20 Sep 1996 14:52:29 +0200 (SAT) From: Ryan Loots To: FreeBSD questions cc: Sheldon Hearn Subject: Re: egrep and Variables In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi There I would like to alter my .procmailrc to allow searches for strings in variable names, for example: ====snip==== LOCALDOMAINS=(blah.com|blah.co.za|blah.org.za) :0: *TOjsmith@$LOCALDOMAINS /home/jsmith/mail/personal ====snip==== Of course, the problem with this is that egrep '$LOCALDOMAINS' looks for the text 'LOCALDOMAINS' after an end of line. How cute. Any suggestions on how to force the egrep that procmail spawns to search for variable names would be welcome. :) ____ Ryan _____________________ UUNet Internet Africa http://donald.iafrica.com It is the business of little minds to shrink. -- Carl Sandburg