Improve a few test canonifiers

This commit is contained in:
Daniel Thayer 2015-09-19 18:08:31 -05:00
parent 8a16145e31
commit a7aa393aef
3 changed files with 21 additions and 19 deletions

View file

@ -13,13 +13,15 @@ $1 == "#path" && $2 == "files" {
process = 1;
}
process && column1 > 0 && column2 > 0 {
$column1 = "XXXXXXXXXXX";
$column2 = "XXXXXXXXXXX";
/^[^#]/ {
if ( process && column1 > 0 && column2 > 0 ) {
$column1 = "XXXXXXXXXXX";
$column2 = "XXXXXXXXXXX";
}
}
/^#/ {
for ( i = 0; i < NF; ++i ) {
/^#fields/ {
for ( i = 2; i <= NF; ++i ) {
if ( $i == "fuid" )
column1 = i - 1;