I have a bunch of fasta files from refseq and I want to know how many bases are on each one. I want to count all characters after the first line of each sequence. I have something among these lines:
for file in *.faa; do echo $file; grep -c ">" "$file" | wc -c; done;
But this gets all characters after > including the headers of the sequences. I just want the number of nucleotides.
I have tried some other grep options but they don't seem to make it better, I would very much appreciate some help.