in reply to Re: Make this simpler?
in thread Make this simpler?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Make this simpler?
by ikegami (Patriarch) on May 17, 2011 at 17:44 UTC | |
by marinersk (Priest) on May 17, 2011 at 19:16 UTC |