Provided you can rely on gawk extensions, a coprocess [1] should help. [1] https://www.gnu.org/software/gawk/manual/gawk.html#Getline_002fCoprocess
-- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/20121228161728.6e6c1611@debws

