everything wrong with free software

 "obedience breeds foolishness"

### another-quick-coding-job-for-mlsd *originally posted:* feb 2022 im calling it showdup.fig: ``` #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ buf arr mid 1 0 p arrstdin forin each p single each rtrim ltrim ck instr buf single iftrue ck iftrue single now "dup: " plus single print else now single print next else buf plus single now each print next next ``` this was very easy to write. the one line i had to add was "now each print" but the rest was written on the first try without compiling. instead of only showing unique lines, or counting consecutive instances, this simply marks any duplicate line (not including the first) as such. this is useful for the work im doing with mlsd. ``` cat mlsd.mlsd | ./showdup.fig.py ``` here is a version that is perhaps more readable: ``` #### license: creative commons cc0 1.0 (public domain) #### http://creativecommons.org/publicdomain/zero/1.0/ buf = arr | mid 1 0 p arrstdin forin each p single = each | rtrim | ltrim ck = instr(buf, single) iftrue ck iftrue single now = "dup: " | plus single | print else now = single | print next else buf = plus single now = each | print next next ``` => https://wrongwithfreesw.neocities.org