[ns] Filtering Columns from output trace file
Salvador Alcaraz Carrasco
salcaraz at obelix.umh.es
Fri Sep 29 10:22:42 PDT 2006
another way:
cat trace.tr | perl column 1 5 7
/salva
On Fri, 29 Sep 2006, Pedro Vale Estrela wrote:
>
>
> Try
>
> cat trace.tr | awk ' { print $2 $6 $8 } '
>
>
> PS: Good subjects, as in this case, will get you the answers!
>
>> -----Original Message-----
>> From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] 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.
>
>
>
__________________________________________________________________________
Salvador Alcaraz Carrasco http://www.umh.es
Arquitectura y Tecnología de Computadores http://obelix.umh.es
Dpto. Física y Arquitectura de Computadores salcaraz[arroba]umh.es
Universidad Miguel Hernández salcaraz[arroba]obelix.umh.es
Avda. de la universidad, s/n Telf. +34 96 665 8495
Elche, Alicante (Spain)
__________________________________________________________________________
More information about the Ns-users
mailing list