📜  bash 读取 fasta 文件序列的长度 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:51:00.531000             🧑  作者: Mango
代码示例1
awk '/^>/ {if (seqlen){print seqlen}; print ;seqlen=0;next; } { seqlen += length($0)}END{print seqlen}' file.fa