# April 26, 2001 # May 31, 2001 BEGIN { highest_packet_id = 0; # printf("This is my new awk program.\n"); # printf("Checks for tcp data only in the old trace format file\n"); } { action = $1 ; # could be D,r,s field4 = $4 ; # AGT field field5 = $5 ; # ack/tcp field field9 = $9 ; # source node address field10= $10 ; # destination node address field11= $11 ; # sequence number field12= $12 ; # unique packet identifier # source-node = w(0) ; dest-node = MN if ( field5 == "tcp" && field9 == "0.0.0.0" && field10 == "1.0.1.2" ) print $0 ; } END { printf("\nend"); exit 0 ; }