• palordrolap@kbin.social
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    You know that sed does more than s///g, right?

    Someone even wrote a version of dc (the arbitrary precision RPN desktop calculator) with it. They were clearly insane of course, but it proves that sed is more than just find and replace.

    Honourable mention to awk’s sub() and gsub() that, at least for basic find/replace, do the same thing. awk is often surprisingly quick.