procmail
[Top] [All Lists]

Re: quick question

1999-08-23 22:39:09
On Mon, 23 Aug 1999, Christopher Lindsey wrote:

cl> >   I;ve got a really quick question, how can you check to see that a
cl> > variable equals something? I'm trying to make sure the variable isn't
cl> > empty but I havn't been able to figure out a correct syntax for it.
cl> 
cl> Try something like
cl> 
cl>    * ! VARIABLE ?? ^^^^
cl> 
cl> ^^ anchors the expression at the start or end of the search area, 
cl> depending on placement.  So ^^^^ is anchored with nothing in between,
cl> meaning that the variable is empty.
cl> 

  Yep, that did it, thanks alot, I saw some examples where they were using
the ^^^^ symbols like that, but had no idea what they were doing or what
they were for.
  Thanks again.

-- 
     S.Toms - tomas(_at_)primenet(_dot_)com - http://www.primenet.com/~tomas
                S.u.S.E. Linux v6.1+ - Kernel 2.2.11

HE:  Let's end it all, bequeathin' our brains to science.
SHE: What?!?  Science got enough trouble with their OWN brains.
                -- Walt Kelley

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