• Sharing my sbbslist cleanup script

    From Nelgin@1:103/705 to DOVE-Net.Synchronet_Sysops on Tue Aug 14 21:58:25 2018
    This one is for unix peeps or Windows people trying to be cool by having
    PERL installed. As noted in the comments, this would be best as a javascript program but I started in PERL so I finished in PERL.

    This simply takes your /sbbs/data/sbbslist.json file and parses it through
    a bunch of regular expressions to try and neat and tidy the thing up a bit.

    A few things it'll do is fix mis-spelled named, abbreviate states so they're
    2 letter uppercase, similar with Canadian provinces and it'll add Canada so
    not to confuse the country code CA with state abb. CA. It'll remove double, leading, and trailing spaces and a few other things. It's a pretty simple
    flow for anyone who would like to have their sbbslist.json in a certain
    format.

    You can get it from http://www.endofthelinebbs.com/fixsbbslist.pl.txt
    download and rename to fixsbbslist.pl or whatever you like and stick
    it somewhere. I created /sbbs/bin and added that to my $PATH in the
    .profile

    Included are instructions for adding it as a timed event but keep
    in mind there's no locking because I'm lazy and I like to take
    changes.

    Anyway, enjoy and let me know if you find it useful.

    ---
    * Synchronet * End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)