title: Renaming fasta headers to bracketed text
body: <p>I have a file with 250 fasta sequences. Right now, the they look like this:</p>
  
  <pre><code>&gt;NP_041982.1 DNA polymerase [Enterobacteria phage T7]
  </code></pre>
  
  <p>I want to change the headers so they look like this: </p>
  
  <pre><code>&gt;Enterobacteria phage T7
  </code></pre>
  
  <p>For each header, I only want what is in-between the brackets. I'm trying to do this through linux commands. </p>
  
  <p>Can anyone help with this? </p>