📜  如何在 linux 中截断大序列 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:13.092000             🧑  作者: Mango

代码示例1
awk 'BEGIN {n_seq=0;} /^>/ {if(n_seq%1000==0){file=sprintf("myseq%d.fa",n_seq);} print >> file; n_seq++; next;} { print >> file; }' < sequences.fa