?? check_listen.awk
字號:
#!/usr/bin/gawk -f
BEGIN {
pdutype = 0;
}
function process_h225_pdu(title, type, tunneling)
{
while (getline > 0) {
if ($0 ~ /^ }/)
break;
else if ($1 ~ /h323_message_body/) {
type = $3;
} else if ($1 ~ /h245Tunneling/)
tunneling = $3;
}
printf ("%s H225: %s, tunnel = %s\n", title, type, tunneling)
}
function process_h245_pdu(title, type)
{
getline;
type = $2;
while (getline > 0) {
if ($0 ~ /^ }/)
break;
}
printf("%s H245: %s\n", title, type);
}
/H225[\t ]*Received PDU/ {
process_h225_pdu("RX")
next;
}
/H225[\t ]*Sending PDU/ {
process_h225_pdu("TX")
next;
}
/H245[\t ]*Received PDU/ {
process_h245_pdu("RX")
next;
}
/H245[\t ]*Sending PDU/ {
process_h245_pdu("TX")
next;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -