Skip to content

Instantly share code, notes, and snippets.

@jonespm
Created August 22, 2016 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonespm/ad6ce77d1d1c4c73486327f84d299343 to your computer and use it in GitHub Desktop.
Save jonespm/ad6ce77d1d1c4c73486327f84d299343 to your computer and use it in GitHub Desktop.
Filter startup logs
cat catalina.out | grep startStop | awk {'print $3 "," $5'} | sort > filtered-catalina.csv
cat filtered-catalina.csv | grep -v detected | awk -F\. {'print $1"."$2"."$3'} > filtered-catalina2.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment