danielecook
2/11/2019 - 3:36 PM

Extract all FASTQ headers

Extract all FASTQ headers

IFS=$'\n'
for line in `cat fastq_list.tsv`; do
    zcat $line | head -n 1 | awk -v fname=$line -v OFS="\t" '{ print $0, fname}' >> fastq_headers.tsv
done