title: How to get filename without extension from %f in bash terminal?
body: <p>The below program (when-changed) gives the filename <code>%f</code> which can be used in the command. How can I get only the filename without file extension from this <code>%f</code> ?</p>
  
  <p>This is the command that I want to use:</p>
  
  <pre><code>when-changed *.scss -c sassc %f f%-min.css
  </code></pre>
  
  <p>It saves a filename like: <code>layout.scss-min.css</code>
  What I need is only <code>layout-min.css</code>, if possible.</p>