Created
March 3, 2011 01:21
-
-
Save wakuteka/852135 to your computer and use it in GitHub Desktop.
d]$ cat *.fa |awk '{if($1!~/^>/)sum+=length}END{print sum}'
173499994
count base pair
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/awk | |
BEGIN { | |
} | |
{ | |
if($1!~/^>/) | |
{ | |
sum += length | |
} | |
} | |
END { | |
print sum, FILENAME | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment