Skip to content

Instantly share code, notes, and snippets.

@brantfaircloth
Created December 1, 2017 19:44
Show Gist options
  • Save brantfaircloth/76a8b809133a955ebc84a82bc3612092 to your computer and use it in GitHub Desktop.
Save brantfaircloth/76a8b809133a955ebc84a82bc3612092 to your computer and use it in GitHub Desktop.
Parse and sort LogLik values from ExaML log file
#/bin/bash
rm -rf log-likelihoods.txt && for i in ExaML_info.*; do result=$(cat $i | grep "Likelihood of best tree"); echo $i $result | tr [:blank:] \\t >> log-likelihoods.txt; done && sort -nrk 6,6 log-likelihoods.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment