I want no. of reads in fastq file with file name, below script can only give no. of reads in fastq file:
File name are like this:
Soil-6_S22_L001.m150-p1.join.fq
Soil-7.m150-p1.join.fq
Soil-8_S32_L001.m150-p1.join.fq
I am interested to get no. of reads with file name like this:
Soil-6 384994
Soil-7 205889
How should I modify below script?
#!/bin/bash
for i in `ls *.fq`; do echo $(cat ${i} | wc -l)/4|bc; done
Kind Regards
input fastq:
with awk to print from one file:
from multiple files: