call awk once to read each file twice