• remove characters/doormud scores

    From Johnny Mnonymous@1:218/650 to All on Sat May 28 20:07:52 2022
    DoorMud has a Player Rankings "rank.lst"

    there's some ugly unwanted characters (not players =p ) in it. is there a linux cli filter that will remove high-end ascii?

    ... Just another prisoner of gravity!

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: harbingerofsubstrate.com (1:218/650)
  • From Wilfred van Velzen@2:280/464 to Johnny Mnonymous on Sun May 29 11:10:30 2022
    Hi Johnny,

    On 2022-05-28 20:07:52, you wrote to All:

    DoorMud has a Player Rankings "rank.lst"

    there's some ugly unwanted characters (not players =p ) in it. is there a linux cli filter that will remove high-end ascii?

    Sure. Somthing like:

    cat in.txt | tr -d '\200-\377' >out.txt


    Bye, Wilfred.

    --- FMail-lnx64 2.1.0.18-B20170815
    * Origin: FMail development HQ (2:280/464)
  • From Johnny Mnonymous@1:218/650 to Wilfred van Velzen on Sun May 29 15:11:55 2022
    On 29 May 2022, Wilfred van Velzen said the following...

    there's some ugly unwanted characters (not players =p ) in it. is the linux cli filter that will remove high-end ascii?

    Sure. Somthing like:

    cat in.txt | tr -d '\200-\377' >out.txt

    thanks. it didn't work but it's defitely pointed me in the right direction.

    ... That's not a bug, it's an undocumented feature

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: harbingerofsubstrate.com (1:218/650)
  • From Travis Mehrer@1:134/303 to Johnny Mnonymous on Mon May 30 09:34:37 2022
    DoorMud has a Player Rankings "rank.lst"

    there's some ugly unwanted characters (not players =p ) in it. is there
    a linux cli filter that will remove high-end ascii?

    While working on a mod for Mystic recently I used the "unidecode" module for Python to do something just like this. It'll take unicode characters and replace them with a close cp437 character. Even with little or no Python knowledge this should be reasonably simple.

    ... Next time you wave at me, use more than one finger!

    --- Mystic BBS v1.12 A48 2022/03/26 (Raspberry Pi/32)
    * Origin: CaNerDUH BBS (1:134/303)