Cleaning irssi logs - Hibby/jsis GitHub Wiki

If you end up with an irssi log with color formatting in it, so it looks like garbage and won't parse, here's how you can clean it up for analysis:

  1. Download log2ansi.pl from http://scripts.irssi.org/ and place it in the same folder as the log file
  2. Assuming your log file is called "channel.log" and you want it to become "clean.log" Run: cat channel.log | perl log2ansi.pl | sed -r "s/\x1B[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" > clean.log

Thanks #irssi @ Freenode and commandlinefu.com