Last active
October 11, 2019 23:14
-
-
Save chalkpe/e1d96ee627a1f32acc24da31931bd052 to your computer and use it in GitHub Desktop.
ACT 로그에서 서버 초월 링크셸 대화를 하루씩 텍스트 파일로 추출해 주는 스크립트
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf ./cwls && awk -F\| '$1 == "00" && $3 == "0025" { | |
if (!dd[d="./cwls/" substr($2,0,4) "/" substr($2,6,2)]) { system("mkdir -p " d); dd[d] = 1; print d }; | |
print gensub(/\x02[^\x03]+?\x03/, "", "g", "[" substr($2,12,8) "] <" $4 "> " $5) > d "/" substr($2,9,2) ".txt" }' "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./act-cwls.sh ACT/FFXIVLogs/Network_*.log