title: Increase number delimited with dots from params file
body: <p>I have few params in my params.txt</p>
  <pre><code>config_version = &quot;1.2.3&quot; 
  
  test_version = &quot;1.2.3&quot; 
  
  version_count = &quot;1.2.3&quot; 
  
  service_name = &quot;test&quot;
  </code></pre>
  <blockquote>
  <p>already have answer from this forum how to get this number as output:</p>
  <pre><code>awk 'BEGIN{FS=&quot;[ \&quot;]+&quot;}/config_version =/{print $3}' /dir/params.txt
  </code></pre>
  </blockquote>
  <p>I need to increase number of config_version value +1 for each awk one liner run. Examples:</p>
  <blockquote>
  <p>first value is 1.2.3, after awk command run --&gt; 1.2.4 and save back to
  file</p>
  <p>first value is 1.200.1, after awk command run --&gt; 1.200.2 and save
  back to file</p>
  <p>first values is 8.999.99, after awk command run --&gt; 9.000.0 and save
  back to file</p>
  </blockquote>
  <p>after each run of awk command the params.txt config_version will be updated to increased value</p>
  <p>params.txt after 5 awk script execution:</p>
  <pre><code>config_version = &quot;1.2.8&quot; 
  
  test_version = &quot;1.2.3&quot; 
  
  version_count = &quot;1.2.3&quot; 
  
  service_name = &quot;test&quot;
  </code></pre>
  <p>It all runs on Gitlab CI and only one-liner will be the option I can use.</p>
  <pre class="lang-sh prettyprint-override"><code>&quot;Gitlab job run (1) -&gt; take 1.200.0 -&gt; change to 1.200.1&quot;
  
  &quot;Gitlab job run (2) -&gt; take 1.200.1 -&gt; change to 1.200.2&quot;
  
  &quot;Gitlab job run (10) -&gt; take 1.200.9 -&gt; change to 1.201.0&quot;
  
  &quot;Gitlab job run (xx) -&gt; take 1.999.9 -&gt; change to 2.000.0&quot;
  </code></pre>
  <p>Command will run as a one liner in <code>gitlab ci</code></p>