Skip to content

Instantly share code, notes, and snippets.

@ywatai
Created February 17, 2012 01:25
Show Gist options
  • Save ywatai/1849548 to your computer and use it in GitHub Desktop.
Save ywatai/1849548 to your computer and use it in GitHub Desktop.
java GC log filter (one-liner)
#!/bin/sh
grep "GC" $1 | awk ' NR == 1 { offset = $1 }; { $1 = sprintf("%.3f", $1 - offset); print $0 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment