#!/usr/bin/gawk -f BEGIN{ IGNORECASE = 1; FS = OFS = ","; Comments = "#.*"; Table = "Table"; } { sub(Comments,"") } /^[ \t]*$/ { next } { for(I=1;I<=NF;I++) $I=trim($I) } sub(/^[ \t]*=/,"",$1) { TableName=$1; for(I=1;I