Hi,
I would like to rename the sequences in my file to have leading zeros in front of the header name using unix or perl based on the number of sequences in the file. I am unable to open these files using a text editor since they are too large. 
Example.

```
>gmp-15 
>gmp-126
>gmp-127890 to
>gmp-000015
>gmp-000126
>gmp-127890
```

Thanks
<pre><code>
awk -F "-" '{if(/^>/)printf("%s-%06d\n",$1,$2); else print $0}' file.fasta > out.fasta
</pre></code>