raw
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 - the converter expects months to be recorded numerically in the input file (e.g. 8, 9 instead of Aug, Sep); if your irssi log uses names for months then you'll need to either update the converter or convert month names to numbers separately, as a pre-converter step.
irssi2tmsr.kv 13 - 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 )