tree checksum vpatch file split hunks
all signers: asciilifeform diana_coman
antecedents: rle_errata.kv
press order:
patch:
(1 . 4)(1 . 5)
5 589248 logotron_genesis "Genesis."
6 589480 multsel_and_datefix "Multiline selections and fix for date arrow."
7 589662 raw_line_export "Export lines in Phf format; fix for debug knob."
8 589674 rle_errata "Date arrow enable fix."
9 589248 logotron_genesis asciilifeform "Genesis."
10 589480 multsel_and_datefix asciilifeform "Multiline selections and fix for date arrow."
11 589662 raw_line_export asciilifeform "Export lines in Phf format; fix for debug knob."
12 589674 rle_errata asciilifeform "Date arrow enable fix."
13 589783 irssi2tmsr diana_coman "Converter of irssi logs to the tmsr format used by the logotron. Added authors in MANIFEST.TXT."
-(0 . 0)(1 . 13)
18 August, 2019
19
20 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.
21
22 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.
23
24 2. Examples of use:
25 ./convert.sh 99384 < inputfile > outputfile
26 sh convert.sh 10001 < inputfile > outputfile
27
28 3. Caveats:
29 - 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.
30 - 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 )
-(0 . 0)(1 . 18)
35 #!/bin/bash
36
37 if [ "$#" -ne 1 ]; then
38 echo "Usage: $0 startIndex"
39 exit 1
40 fi
41
42 awk -v mindex=$1 '/Day changed/ {Month=$5; Day=$6; Year=$7;}
43 /Log opened/ {Month=$5; Day=$6; Year=$10;}
44 ! /-|<--|>/ {count++; sep=";";
45 w= Year " " Month " " Day " " $1 " " $2 " 00";
46 if ($3 == "*") {
47 pp=$3 sep $4 " "; $4=""; n=5;
48 } else {
49 pp=$3 sep; n=4;};
50 $1=""; $2=""; $3="";
51 print count+mindex-1 sep mktime(w) sep pp substr($0,n);
52 }'