I'm still a bit of a n00B in the Unix/Linux space, but it seems you are pre-conceiving 1-7, but the OP indicated the number of files was actually variable.
So I suspect this tweak would do it:
for f in sample*.fasta ; do grep '^>' "$f" | wc -l done
But I'm willing to be wrong; I often am.
In reply to Re^2: Make this simpler?
by marinersk
in thread Make this simpler?
by faozhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |