Source of the 3 AWK scripts: http://mailman.isi.edu/pipermail/ns-users/2004-September/044669.html http://mailman.isi.edu/pipermail/ns-users/2004-September/044650.html