Skip to content

Instantly share code, notes, and snippets.

@chalkpe
Last active October 11, 2019 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalkpe/e1d96ee627a1f32acc24da31931bd052 to your computer and use it in GitHub Desktop.
Save chalkpe/e1d96ee627a1f32acc24da31931bd052 to your computer and use it in GitHub Desktop.
ACT 로그에서 서버 초월 링크셸 대화를 하루씩 텍스트 파일로 추출해 주는 스크립트
#!/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" }' "$@"
@chalkpe
Copy link
Author

chalkpe commented Oct 11, 2019

./act-cwls.sh ACT/FFXIVLogs/Network_*.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment