title: How to modify yaml file value using bash scripting
body: <p>I need to update values on the .yml file</p>
  <p>For example, On below I need to modify only the version</p>
  <pre><code>name: dummyaml
  description: &gt;-
    blah blah blah.
  
  version: 1.2.3
  
  environment:
    sdk: '&gt;=2.10.0 &lt;3.0.0'
    
  dependencies:
    efts: ^2.0.4
    transmogrify: ^0.4.0
    
  dev_dependencies:
    test: '&gt;=1.15.0 &lt;2.0.0'
  </code></pre>
  <p>I tried this</p>
  <p><code>sed -i 's/^version:.*/version:'&quot;$VERSION&quot;'/' xy.yaml</code>
  got below error</p>
  <p>sed: 1: &quot;xy.yaml&quot;: extra characters at the end of x command</p>