fastq条数就是总行数/4,fasta条数就是数">"的个数 fastq expr $(cat test.fastq | wc -l) / 4 fasta grep ">" test.fasta | wc -l 参考链接:https://www.jianshu.com/p/dbf09d1850b9