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

@ -5,12 +5,14 @@
awk '
BEGIN { FS="\t"; OFS="\t"; }
column > 0 {
$column = "XXXXXXXXXXX";
/^[^#]/ {
if ( column > 0 ) {
$column = "XXXXXXXXXXX";
}
}
/^#/ {
for ( i = 0; i < NF; ++i ) {
/^#fields/ {
for ( i = 2; i <= NF; ++i ) {
if ( $i == "uid" )
column = i - 1;
}