Last active
February 11, 2019 16:04
-
-
Save danielecook/b5d1e1e16dceb117fb915ce26ee29c64 to your computer and use it in GitHub Desktop.
Extract all FASTQ headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment