irssi2tmsr.kv           1 August, 2019
irssi2tmsr.kv           2 
irssi2tmsr.kv           3 This is a quick'n'dirty AWK one-line script that successfully converted an irssi irc log into the tmsr format that the logotron uses.
irssi2tmsr.kv           4 
irssi2tmsr.kv           5 1. The bash script expects one single parameter that is the starting index (i.e. the index of the first line in the log). E.g. ./convert.sh 100 will produce lines numbered 100, 101, 102 etc.
irssi2tmsr.kv           6 
irssi2tmsr.kv           7 2. Examples of use:
irssi2tmsr.kv           8   ./convert.sh 99384 < inputfile > outputfile
irssi2tmsr.kv           9   sh convert.sh 10001 < inputfile > outputfile
irssi2tmsr.kv          10 
irssi2tmsr.kv          11 3. Caveats:
irssi2tmsr.kv          12   - based on the previous raw awk version published at http://logs.nosuchlabs.com/log/trilema/2019-08-11#1927486 and tested *only* on one irssi log of #ossasepia (result can be seen at: deedbot.org/deed-589684-1.txt )
irssi_format.kv        13   - the converter works on the "out-of-the-box" irssi log format, as currently seen, for instance:
irssi_format.kv        14 
irssi_format.kv        15 --- Day changed Mon Jul 15 2019
irssi_format.kv        16 16:46 --> moopet [~moopet@unaffiliated/moopet] has joined #ossasepia
irssi_format.kv        17 16:46  moopet: Aloha
irssi_format.kv        18 16:46  diana_coman: hello moopet 
irssi_format.kv        19 16:46  diana_coman: what brings you here?
irssi_format.kv        20 16:47 * moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
irssi_format.kv        21 
irssi_format.kv        22 will produce (./convert.sh 2 < in.log > out.log)  as output:
irssi_format.kv        23 
irssi_format.kv        24 2;1563205560;moopet;Aloha
irssi_format.kv        25 3;1563205560;diana_coman;hello moopet
irssi_format.kv        26 4;1563205560;diana_coman;what brings you here?
irssi_format.kv        27 5;1563205620;*;moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
irssi_format.kv        28