delayProcessing 971 B

1234567891011121314151617181920
  1. #! /bin/bash
  2. #if (grep "MN*" omnetpp.sca | awk '{print $2}'|grep "MN")
  3. #then
  4. grep "MN*.**.Home_Reg*" omnetpp.sca | awk '{print $4}' > HomeRegDelay.txt # records delay (sec) for Home Registration
  5. grep "MN*.**.Return_Rou**" omnetpp.sca | awk '{print $4}' > RRDelay.txt # records delay (sec) for Return Routability Procedure
  6. grep "MN*.**.Correspondent_Reg*" omnetpp.sca | awk '{print $4}' > CNRegDelay.txt # records delay (sec) for Correspondent Registration Process
  7. grep "MN" omnetpp.sca| grep "ScanRequest_Time"| awk {'print $4'} > L2HO_AssocDelay.txt
  8. grep "MN" omnetpp.sca | grep "DAD_OK"| awk {'print $4'}> L2HO_CoADelay.txt
  9. #CoADelay=$(grep "MN" omnetpp.sca | grep "DAD_OK"| awk {'print $4'}) #> L2HO_CoADelay.txt
  10. #L2HODelay=$(grep "MN" omnetpp.sca| grep "ScanRequest_Time"| awk {'print $4'}) #> L2HO_CoADelay1.txt
  11. #echo "CoA delay is $CoADelay"
  12. #echo "L2HO Delay is $L2HODelay"
  13. #T1=$CoADelay
  14. #T2=$L2HODelay
  15. #echo "($T1 - $T2)"| bc >L2HODelay
  16. #echo "T3 is $T3"
  17. #fi