Search Results

Search: Posts Made By: ASAADAOUI
2,660
Posted By ASAADAOUI
i try your awk program and l reply the result ...
i try your awk program and l reply the result
please how exactly write the program, like this script or other:

BEGIN{}

awk'$3 == 1 && $5 == "tcp" {
$1 == "+" && node_plus += $6
$1 == "-"...
2,660
Posted By ASAADAOUI
i try your awk program and l reply the result ...
i try your awk program and l reply the result
please how exactly write the program, like this script or other:

BEGIN{}

awk'$3 == 1 && $5 == "tcp" {
$1 == "+" && node_plus += $6
$1 == "-"...
2,660
Posted By ASAADAOUI
is this correct if i want only for node 1 ...
is this correct if i want only for node 1

($5 == "tcp" && $3=="1") {
$1 == "+" && node_plus[$3] += $6
$1 == "-" && node_minus[$3] += $6
print $2, node_plus[$3], node_minus[$3], \
...
2,660
Posted By ASAADAOUI
yes i want only for node 1
yes i want only for node 1
2,660
Posted By ASAADAOUI
I suppose for example, he correct (desired)...
I suppose for example, he correct (desired) output like the following result:

0.025032 40 0 40

0.025032 80 40 40

0.04596 1120 140 980
...
2,660
Posted By ASAADAOUI
[asaadaoui@elec ~]$ awk -f 3var2.awk salem.tr>...
[asaadaoui@elec ~]$ awk -f 3var2.awk salem.tr> 3var2.txt
[asaadaoui@elec ~]$ gedit 3var2.txt

i have this output file : 3var2.txt




0.025032 40 0 40

0.025032 80 0 80

0.04596 1120 0...
2,660
Posted By ASAADAOUI
plz, i wait your help, AWK problem
I have tracefile of three nodes (0 , 1 and 2 ) as follows:
+ 0.02 0 1 tcp 40 ------- 1 0.0 2.0 0 0
- 0.02 0 1 tcp 40 ------- 1 0.0 2.0 0 0
+ 0.02 2 1 tcp 40 ------- 2 2.1 0.1 0 1
- 0.02 2 1 tcp...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy