Created
August 23, 2017 05:59
-
-
Save skurscheid/2fd270f9b84a59fd09a202cc2aec1c39 to your computer and use it in GitHub Desktop.
pre-format filenames of PE FASTQ files for JSON config file
This file contains 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
for i in $(ls | cut -f 1 -d "_" | uniq | sort -n); do j=$(ls ${i}_*.gz); s1=$(echo $j | cut -f 1 -d " "); s2=$(echo $j | cut -f 2 -d " "); echo "[\"${s1}\", \"${s2}\"],"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment