title: Replace a specific character in Jenkins shell step
body: <p>I have a variable <code>$svn_tag</code> in a Jenkins job.</p>
  <p>Its value is <code>branches/sprint-77</code>.</p>
  <p>I want the output <code>branches-sprint-77</code>, but I didn't get any output.</p>
  <p>I tried these two methods:</p>
  <pre><code>$svn_tag|tr &quot;/&quot; -
  ${svn_tag////-}
  </code></pre>
  <p>It is giving output in bash script, but it is not working in the Jenkins job.</p>
  <p>What am I doing wrong?</p>