title: Bash replace minor version in version string
body: <p>I'm looking for an elegant way (a bash one-liner) to replace a part of a semantic version number. The versions look like 7.12.0-0. I need to replace the minor version with a number that's two more than what's in the string.</p>
  <ul>
  <li>Original string: 7.12.0-0</li>
  <li>Resulting string 7.14.0-0</li>
  </ul>