Presi300,
@Presi300@lemmy.world avatar

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

paholg,

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.

ruckblack,

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

eager_eagle, (edited )
@eager_eagle@lemmy.world avatar

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


<span style="color:#323232;">?? sed command to replace all 'warning' for 'error' in mid.py, in place
</span>
Andrew15_5,
@Andrew15_5@mander.xyz avatar

Skill issue

riodoro1,

The first requires no skill and does the same thing.

Andrew15_5, (edited )
@Andrew15_5@mander.xyz avatar

The first requires using GUI (and several seconds to launch). We don’t do that here.

riodoro1,

I vividly remember posts about X/Wayland supremacy. It must’ve been a dream

jeffhykin,

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

DoomBot5,

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

jeffhykin,

For now 😎

palordrolap,

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.

Tau,

:%s/warning/error/gn

You don’t even have to touch your mouse

Prunebutt,

Joke’s on you: tiling wm

Andrew15_5,
@Andrew15_5@mander.xyz avatar

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

Tau,

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

mexicancartel, (edited )

Ctrl+alt+t

$ sed…

ctrl+d

Andrew15_5,
@Andrew15_5@mander.xyz avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #