代码搜索:awk
找到约 3,459 项符合「awk」的源代码
代码结果 3,459
www.eeworm.com/read/457053/1600655
awk avgpktdrop.awk
BEGIN {drops=0; arr=0}
{drops += $16; arr += $12}
END {print "drops = " drops; print "arrivals = " arr; print "avg pkt drop % = " drops/arr}
www.eeworm.com/read/457053/1600784
awk filter.awk
{
if ($1 == "+") {
t = $6
if ($6 == 1000) {
t = 1500
}
print $2, t
}
}
www.eeworm.com/read/457053/1600967
awk seq.awk
BEGIN {
if (dir == "")
dir = ".";
}
{
if ($1 == "-" && ($5 == "tcp" || $5 == "ack")) {
split($9,a,"\.");
saddr = a[1];
sport = a[2];
split($10,a,"\.");
daddr = a[1];
dport = a[2];
if ($5
www.eeworm.com/read/457053/1600968
awk tcp.awk
BEGIN {
if (dir == "")
dir = ".";
}
{
time = $2;
saddr = $4;
sport = $6;
daddr = $8;
dport = $10;
hiack = $14;
cwnd = $18;
ssthresh = $20;
srtt = $26;
rttvar = $28;
ownd = $34;
owndcorr = $36;
nr
www.eeworm.com/read/457053/1600976
awk resptime.awk
{
if (NR > 1)
sum += ($3 - $2);
}
END {
if (NR > 1)
print sum/(NR-1);
else
print -1;
}
www.eeworm.com/read/457053/1600977
awk thruput.awk
BEGIN {
s = "";
}
{
if ($1 != "(0,0)->(3,0)") {
sum += $6;
s = sprintf("%s %d", s, $6);
}
}
END {
printf "%s %d", s, sum;
}
www.eeworm.com/read/457053/1600982
awk drop.awk
BEGIN {
fsDrops = 0;
otherDrops = 0;
}
($2 >= startTime && $2 0 && op ==
www.eeworm.com/read/457053/1600983
awk process.awk
#!/usr/local/bin/gawk -f
BEGIN {
erriter = -1;
}
{
iter = $1;
if (iter == erriter)
next;
s = "";
i = 2;
while (index($i,"-")) {
s = sprintf("%s %s", s, $i);
i++;
}
s = sprintf("%s %s
www.eeworm.com/read/457053/1601040
awk seqnos.awk
# This prints the Seqnos, and the fraction of packets with that Seqno.
# Input file:
###########################################
# Distribution of Seqnos, 100 seqnos per bins
# 0 to 99: fraction 0.111
www.eeworm.com/read/457053/1601268
awk rtts.awk
# This prints the RTT in seconds, and the fraction of packets with that RTT.
# Input file:
###########################################
# Distribution of RTTs, 10 ms bins
# 0 to 10 ms: fraction 0.003 n