Skip to content

Instantly share code, notes, and snippets.

@mfdj
Created April 22, 2016 19:30
Show Gist options
  • Save mfdj/a9bcf6448b757169e55d6111028ff7fe to your computer and use it in GitHub Desktop.
Save mfdj/a9bcf6448b757169e55d6111028ff7fe to your computer and use it in GitHub Desktop.
grep | awk | tr | past | bc
grep 'ms' $LOG_FILE | awk '{print $(NF-0)}' | tr -d '()ms' | paste -sd+ - | bc
@mfdj
Copy link
Author

mfdj commented Apr 22, 2016

Just a rough idea of aggregate time logged to a file where (…ms) is in the last word-column of a line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment