How to find the sum of all sequences in a multifasta file I have a multifasta file containing several genes from a genomic island. I want to know the total length of this island. How can I do this?
grep -v "&gt;" multi.fasta | tr -d '\n' | wc -c



grep -v "&gt;" find all non header lines (i.e. without ">")
tr -d '\n' delete all newlines
wc -c count all characters