Hi evrybody!
Because I have a simulation trace file that contain informations about packets generated in the network. In order to calculate the transmission delay for every packet I must match the packetId.
I would like to take evry ligne from my inputfile and compare it to all other lignes of my inputfile? Can someone help me?
my pseudo code is like this:
//For every ligne do the following
PacketId = $1; //$1 is the packet Identifier
start = $2; // transmission time
for (i=0; i<=NR; i++)
{ if ($1 == PacketId)
{v //compare with all the imputfile lignes
print $2-start > outputfile
}
}
Because I have a simulation trace file that contain informations about packets generated in the network. In order to calculate the transmission delay for every packet I must match the packetId.
I would like to take evry ligne from my inputfile and compare it to all other lignes of my inputfile? Can someone help me?
my pseudo code is like this:
//For every ligne do the following
PacketId = $1; //$1 is the packet Identifier
start = $2; // transmission time
for (i=0; i<=NR; i++)
{ if ($1 == PacketId)
{v //compare with all the imputfile lignes
print $2-start > outputfile
}
}