• Andrew
      link
      fedilink
      38 months ago

      With sed command you don’t have to use mouse either.

      • @[email protected]
        link
        fedilink
        18 months ago

        But you have to use your mouse to switch to a new terminal, assuming you are using vscode for everything else

        • Andrew
          link
          fedilink
          38 months ago

          You assumption is wrong. I’m a chad that only use terminal and Neovim. I don’t need those filthy mouses. I have a touchpad instead that I also rarely use. I have millions of keymaps engraved in my brain, give me a keyboard and a terminal and I will move mountains.

  • @ruckblack
    link
    188 months ago

    Except that I need to do 5 minutes of googling every single time I want to use sed

    • Eager Eagle
      link
      fedilink
      English
      3
      edit-2
      8 months ago

      if you’re not being paid by the hour, try out clipea.

      ?? sed command to replace all 'warning' for 'error' in mid.py, in place
      
    • palordrolap
      link
      fedilink
      68 months 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.

  • @[email protected]
    link
    fedilink
    English
    28 months ago

    I just learned that the Mac version of sed requires a backup file for the -i flag, making it really hard to write cross-platform scripts that use it.

  • Presi300
    link
    fedilink
    English
    -28 months ago

    You’re a monster of you actually like regex more than just opening a full text editor. I’d open visual studio and use it to give the text I need before I touch sed