title: How to find and replace variable assignment at the end of a line?
body: <p>Using windows batch scripting, I'm trying to search and replace a variable assignment within a file.</p>
  
  <p>It gets weird since the assigned value is always changing and because the variable is at the end of the line. Here is what the file contains:</p>
  
  <pre><code>*##========================================================
  *## This file was generated on 09-18-2007 at 10:21:56
  *##========================================================
  DEBUG-LEVEL = 10     APP-DELIVERY = 35
  
  PROGRAM-CONTROL...
    DUPLICATE-CONDITION-CHECK  = N
    GENERATE-SETUP             = N
    GENERATE-ENV               = Y
  </code></pre>
  
  <p>I am trying to replace the assigned value of the APP-DELIVERY variable, so I would like to write a script that would change the 35 to a 36 for example.</p>
  
  <p>I've found many answers on how I would go about replacing static strings with another string, but I haven't found anything yet regarding changing the value of a variable, much less one that is at the end of a line. Also with the answers I've found, I have been unsure of how to deal with the equals sign.</p>