[ns] re: analysis trace file with awk !!!!!!!!!!!!!! URGENT!!!!!!!!!!!!!

geek haliyou.ca at gmail.com
Thu Jun 2 17:48:45 PDT 2005


#!/usr/bin/awk -f

 




Hi, there:

        the following program could run under cygwin, but can't run
under linux. COuld your guys help me wonder why? thanks a ton.

geek



BEGIN{

 

        

 

          FS=" ";

 

 

          unit = 0.01;

 

        

          countr = 0;

          counts = 0;

 

        

          time = 0;

 

     }

 





       /^r */ {

 

                 		

 

                     counts = counts + 1;

              

 

 

               }

               

             

 

					END{

 

								printf " %f %d\n",time*unit,counts;

 

							}



More information about the Ns-users mailing list