title: Removing part of a filename for multiple files on Linux
body: <p>I want to remove <strong>test.extra</strong> from all of my file names in current directory </p>
  
  <pre><code>for filename in *.fasta;do 
  
      echo $filename | sed \e 's/test.extra//g'
  
  done
  </code></pre>
  
  <p>but it complains about not founding file.echo is to be sure it list correctly. </p>