Skip to content

Instantly share code, notes, and snippets.

@apnsngr
Created January 15, 2017 22:53
Show Gist options
  • Save apnsngr/a0d5c2c94b3730745c7e6dec7c43beef to your computer and use it in GitHub Desktop.
Save apnsngr/a0d5c2c94b3730745c7e6dec7c43beef to your computer and use it in GitHub Desktop.
Extract testing output from ECE 437 make output
#! /usr/bin/awk -f
#
# Extract test output from ECE 437 simulation/synthesis output
#
# Written by: Andrew Pensinger <apensin@purdue.edu>
BEGIN {
print_lines=0;
}
/# End time: .*/ {
print_lines=0;
}
{
if (print_lines) {
print substr($0, 3);
}
}
/# run -all/ {
print_lines=1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment