[ns] Howo to slelect a particular column from a trace file?
gprabhu@tce.edu
gprabhu at tce.edu
Thu Jan 24 21:58:24 PST 2008
Hi,
I want to draw xgraph for my wireless simulation in AODV protocol. For
that i used the following code. But in that command the column file is
not working and it shows some error as
" column 1: unknown file or directory
column 10: unknown file or directory"
when i try to execute that. Anyone is having the correct column seperator
code for this. Plz guide me to get the column seperation properly...
The command i have used is:
cat out.tr | grep " 2 3 cbr " | grep ^r | column 1 10 | awk '{dif = $2 -
old2; if(dif==0) dif = 1; if(dif > 0) {printf("%d\t%f\n", $2, ($1 - old1)
/ dif); old1 = $1; old2 = $2}}' > jitter.txt
In this code the 2 grep and the awk commands are working fine but not the
column 1 10. Plz help me... when i run this it shows
column 1: unknown file or directory
column 10: unknown file or directory
Thank you,
G.Prabhu
-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)
-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)
More information about the Ns-users
mailing list