Planning to Write a script that reads a Fasta-formatted file and writes the number of sequences in it, followed by the accessions of the sequences. For example, if the input is
>Pig
ACGT
>Dog
AGTG
>Bunny
TATA
then the output should be
3
Pig
Dog
Bunny
any idea?