title: removing extension from file without knowing it
body: <p>I know how to remove the extension of a file, when I know it as:</p>
  
  <pre><code>nameis=$(basename $dataset .csv)
  </code></pre>
  
  <p>but I want to remove any extension without knowing it beforehand, anyone know how to do this?</p>
  
  <p>Any help appreciated,
  Ted</p>