Linux ET Server log vsay extraction script anyone?


(nomad) #1

Does anyone know of a single script that can be used to extract the vsays, text chats and private messages from an etserver log file?

Thanks


(turk2000) #2

Hallo, I’m trying to do a script with Perl or Awk language. Sorry for my poor english, of course I assure nothing :smiley:


(fledsbo) #3

Like this?

grep "^… (sayteam:|say:|etpro privmsg:) " etpublic.log | sed ‘s/^.//g’


(turk2000) #4

my version :bump:

egrep -e ‘^[[:digit:]]+:[[:digit:]]{2} (say:|sayteam:|etpro privmsg:)’ sv_goodgame.log


(B0rsuk) #5

Could you attach a sample log ?

Accidentaly we’ere doing this kind of thing on university. So it would be fun&educative at the same time.


(kamikazee) #6

Eventually, you can do this parsing with AWK, instead if using grep.

@B0rsuk: If you host a local server and set it up so it writes out the log files, you can generate those on your own. I haven’t got ET on this PC, so I can’t directly help.