Skip to content

Instantly share code, notes, and snippets.

@andlabs
Created January 2, 2015 20:39
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 andlabs/8a7b2d16c67370dee42e to your computer and use it in GitHub Desktop.
Save andlabs/8a7b2d16c67370dee42e to your computer and use it in GitHub Desktop.
# 2 january 2015
# usage: ./e4jexamine summary file | awk -f fulllog.awk file
# TODO pass options to e4jexamine
# TODO check for errors
BEGIN {
# TODO make sure this is sufficient to alter ARGC/ARGV
file = ARGV[1]
ARGC = 1
}
{ print }
/descriptor/ {
cmd = sprintf("./e4jexamine descdump.%s %s", $1, file)
while (cmd | getline)
printf "\t%s\n", $0
close(cmd)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment