bash lisant la longueur du fichier fasta seqeunces

awk '/^>/ {if (seqlen){print seqlen}; print ;seqlen=0;next; } { seqlen += length($0)}END{print seqlen}' file.fa
Crowded Curlew