cat trace.tr | awk ' { print "$2\t\t$8" } '
hint: check this small doc and associated tools to answer a lot of questions "ns-2 for the impatient": http://icapeople.epfl.ch/aad/teaching/ns/ > -----Original Message----- > From: Aleksandar Smolovic [mailto:[EMAIL PROTECTED] > Sent: sexta-feira, 29 de Setembro de 2006 16:50 > To: [EMAIL PROTECTED] > Subject: Re: [ns] Filtering Columns from output trace file > > Thank you. > > How to make delimiter between columns in new file. It should be done > during > creation of new file? > > > ----- Original Message ----- > From: "Pedro Vale Estrela" <[EMAIL PROTECTED]> > To: "'Aleksandar Smolovic'" <[EMAIL PROTECTED]>; "'NS-Users'" > <ns-users@ISI.EDU> > Sent: Friday, September 29, 2006 5:42 PM > Subject: RE: [ns] Filtering Columns from output trace file > > > > Try > > cat trace.tr | awk ' { print $2 $6 $8 } ' > > > PS: Good subjects, as in this case, will get you the answers! > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf > > Of Aleksandar Smolovic > > Sent: sexta-feira, 29 de Setembro de 2006 16:11 > > To: NS-Users > > Subject: [ns] Filtering Columns from output trace file > > > > > > Hi all, > > > > I have a basic NS2 question. > > > > After executing tcl script, I have result files on my HDD. I have output > > trace file, let's say "out.tr". Now I want to draw some graphics. My > > out.tr files have 12 columns and I need only 2. How to do it ? > > > > I saw that in documentation people mention "column.pl" perl script fajl, > > for this purpose, but I cannot find how to use it. > > > > Can somebody help me with filtering 2 columns from trace file? > > > > Thanks.