Updated logfilter_irc* scripts with the current production versions
This commit is contained in:
parent
c6c0979800
commit
6cad834573
3 changed files with 22 additions and 12 deletions
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# skip over irregular lines
|
||||
/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+:/!d
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
||||
/^<[a-zA-Z0-9_-]\+ .*>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
||||
|
|
|
@ -1,17 +1,25 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# skip over irregular lines
|
||||
/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+:/!d
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
||||
# reset t
|
||||
ta;:a
|
||||
/^<[a-zA-Z0-9_-]\+ .*>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
||||
s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 <05server14>05/;t
|
||||
s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/;t
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;talign
|
||||
s/^[a-zA-Z0-9_-]\+ started game: /03&/;t
|
||||
s/^\([a-zA-Z0-9_-]\+\) started reloaded game: /03\1 started reloaded game: /;t
|
||||
s/^[a-zA-Z0-9_-]\+ advanced game: /03&/;t
|
||||
s/^[a-zA-Z0-9_-]\+ ended game: /05&/;t
|
||||
s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\)/14&/;t
|
||||
s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:/14&/;t
|
||||
b
|
||||
|
||||
s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 <05server14>05/
|
||||
s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;s/ *\(.\{25\}14>\)/\1/
|
||||
s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ ended game: .*$/05&/
|
||||
s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\).*$/14&/
|
||||
s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:.*$/14&/
|
||||
# right align with nick length of 20 in mind -> 22 spaces (20 + <>) -> .\{27\} (colors + <)
|
||||
:align
|
||||
s/^ *\(.\{27\}14>\)/\1/
|
||||
|
|
|
@ -8,7 +8,7 @@ s/""/"/g
|
|||
|
||||
s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 <05server14>05/
|
||||
s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;s/ *\(.\{25\}14>\)/\1/
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;s/ *\(.\{27\}14>\)/\1/
|
||||
s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
|
||||
|
|
Loading…
Add table
Reference in a new issue