You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
567 B
19 lines
567 B
1 month ago
|
#!/bin/bash
|
||
|
#basePath=/cygdrive/c/newpet/pandora_svr_proj/log
|
||
|
basePath=/data/mmogrun/publish/log/
|
||
|
|
||
|
cd ${basePath}
|
||
|
function format() {
|
||
|
name=$1
|
||
|
awk '/ServerStat begin/ {buffer=""; p=1} p {buffer=buffer ORS $0} /SocketSessionMapCount/ {if (p) {content=buffer; p=0}} END {print content}' ${name}.stat > ${name}.stat.tmp
|
||
|
# cat ${name}.stat |grep -C1 "onlinePlayer" | tail -n4 |awk -F " " '{for (i=2;i<=NF;i++)printf("%s ", $i);print ""}' > ${name}.stat.tmp
|
||
|
|
||
|
}
|
||
|
format gate_game_1
|
||
|
format gate_game_2
|
||
|
format gate_chat
|
||
|
format gate_account
|
||
|
format gate_version_1
|
||
|
|
||
|
exit 0
|