title: Copy and replace content in string of file name
body: <p>I am trying to copy a file <code>boot-1.5-SNAPSHOT.jar</code> to <code>boot-1.5.jar</code>.</p>
  
  <p>I've tried this using <code>sed</code> but I am getting an error. I know the syntax isn't right and I am hoping someone can complete it for me.</p>
  
  <pre><code>cp boot-* | sed -e 's:-SNAPSHOT::g'
  cp: missing destination file operand after ‘boot-1.5-SNAPSHOT.jar’
  </code></pre>
  
  <p>The idea of this is that the script will not know the version number, just that the jar will be in the folder it's trying to copy the file from. Which is why I use an asterisk. The version number changes quite frequently so using <code>cp file file2</code> will not work.</p>