Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #shell + sed script to change craftirc logs into full irssi logs
- botname=mineBot
- channame=#minecraft
- sed -i.orig 's/^\([0-9][0-9]:[0-9][0-9]\) <\(.\)'$botname'> (\([^)]\+\))/\1 <\2\3>/;
- s/^\([0-9][0-9]:[0-9][0-9]\) <\(.\)\('$botname'\)> \[\([^[ ]\+\) connected]/\1 -!- \4 [\4@\3] has joined '$channame'/;
- s/^\([0-9][0-9]:[0-9][0-9]\) <\(.\)\('$botname'\)> \[\([^[ ]\+\) disconnected]/\1 -!- \4 [\4@\3] has quit [Quit: ]/;' $channame.*.log
Add Comment
Please, Sign In to add comment