Skip to content

Instantly share code, notes, and snippets.

@skurscheid
Created August 23, 2017 05:59
Show Gist options
  • Save skurscheid/2fd270f9b84a59fd09a202cc2aec1c39 to your computer and use it in GitHub Desktop.
Save skurscheid/2fd270f9b84a59fd09a202cc2aec1c39 to your computer and use it in GitHub Desktop.
pre-format filenames of PE FASTQ files for JSON config file
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