procmail
[Top] [All Lists]

Comparing variables....

1999-04-12 18:46:43
I know I am just piling on the mail, but one more thing...

I sucked a file into a variable using:
VAR = `cat myfile`

Now I want to check to see if a variable (VAR2) exists within the file.
I've tried things like
* FILE ?? $VAR2
But I just don't know the syntax well enough to get it right.
I want a complete match.  VAR2 must be nested within FILE for the condition
to succeed.


Thanks
    _------_
   /        \
  |          |
  |          |
  |     __  __)
  |    /  \/  \
 /\/\ (o   )o  )
 /c    \__/ --.
(              )
 \_   _-------'
  |  /         \
  | | '\_______)
  |  \_____/
  |_____ |       Randy James
 |_____/\/\      The MathWorks, Inc.
 /         \     rjames(_at_)mathworks(_dot_)com

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