• jeffhykin@lemm.ee
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    1 year ago

    sd or nothing. I’m never dealing with sed’s slow and out of date regex ever again

    • DoomBot5@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      1 year ago

      Oh look, this one isn’t installed on practically every Linux machine in existence

    • 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.