title: Unix command or bash script to convert file with abc.def to abc-def-1.0.0.tar.gz?
body: <p>I would think it would use sed, regex for the substitution and to select the next line's version and append, etc.</p>
  <p>input file</p>
  <pre><code>name: abc.def
  version: 1.0.0
  </code></pre>
  <p>output file</p>
  <pre><code>name: abc-def-1.0.0.tar.gz
  version: 1.0.0
  </code></pre>