title: How to replace a single line in .sh with Java?
body: <p>I have a .sh script with a <code>property=value</code>. Let it be:</p>
  
  <blockquote>
    <p>some_property="some value"</p>
  </blockquote>
  
  <p>The value of the property is used along the script and script is launched in Java code. I want to dynamically change this property's value. I tried to use <code>replaceFirst()</code> method, but I don't know the actual value of "some_property" to replace it correctly using regexp.</p>
  
  <p>How can I edit a .sh file with replacing a single line that starts with <code>"some_property="</code> by <code>some_property=my_value</code>? By the way there're several places in a file where pattern "some_property=" can be met, so I need to change the first occurrence.</p>