Skip to content

Instantly share code, notes, and snippets.

@claczny
Last active August 9, 2017 10:00
Show Gist options
  • Save claczny/3366f6b29680e0c357d2068e09b09f6e to your computer and use it in GitHub Desktop.
Save claczny/3366f6b29680e0c357d2068e09b09f6e to your computer and use it in GitHub Desktop.
Reformat stdout from `sourmash compare`
grep -E "^[0-9]*-" -A1 compare.abundtrim.dist.txt | tr -d "\n" | sed 's/]/]\n/g' | tr -s " " "\t" | sed 's/\[\t//' | sed 's/\]//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment