Created
May 7, 2015 13:35
-
-
Save ryo1kato/0486b5d8fbab48dd4661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
if ( $2 != old_nr ) { | |
print output_candidate | |
output_candidate = $0 | |
candidate_result = $3 | |
} else { | |
if ( candidate_result != "pass" ) { | |
output_candidate = $0 | |
candidate_result = $3 | |
} | |
# else, ignore this line and use the previous "pass" result | |
} | |
old_nr = $2 | |
} | |
END { | |
print output_candidate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment