Change header of fasta file with sequential numbers
<p>How to change with awk/sed/grep the header of more fasta sequences in a file like:</p>

<pre><code>&gt;chromosome1|2199-2200
----------------------

&gt;chromosome1|3546-3548
----------------------

&gt;chromosome1|6489-6548
----------------------
</code></pre>

<p>to this:</p>

<pre><code>&gt;chromosome1-1|2199-2200
------------------------

&gt;chromosome1-2|3546-3548
------------------------

&gt;chromosome1-3|6489-6548
------------------------
</code></pre>

<p>At the moment I just can add a sequential number at the beginning or end of the name like:</p>

<p><code>awk '/^&gt;/{gsub(/^&gt;/,"&gt;Seq"i++" ");}1'</code> </p>

<p><b></b></p>

<pre><code>&gt;Seq1chromosome1|2199-2200
</code></pre>