title: Linux replace remove chars from string and save to var
body: <p>This is my gitlab-ci.yml file. Mainly it just executes script lines </p>
  
  <pre><code>    before_script:
    - export RELEASE=${CI_BUILD_REF_SLUG}
  </code></pre>
  
  <p>In ${CI_BUILD_REF_SLUG} can be feature/myproduct-1</p>
  
  <p>but i want to remove the "/" and "-" chars</p>
  
  <p>I tried it in a simple linux console like so:</p>
  
  <pre><code>echo "feature/myproduct-1" | tr -d /-
  </code></pre>
  
  <p>And it worked. But i just cant get it working inside the yml</p>
  
  <p>So what i want that the value that is parsed to RELEASE is free of "-" and "/" chars.</p>
  
  <p>UPDATE: this is halfway what i want. Now i need to remove the "/" and i am done</p>
  
  <pre><code>RELEASE='feature/sendis-6'
  new=$(echo $RELEASE | sed 's/-//g')
  echo $new
  </code></pre>