Opening a full editor is overrated
Opening a full editor is overrated
Opening a full editor is overrated
Except that I need to do 5 minutes of googling every single time I want to use sed
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
sd or nothing. I'm never dealing with sed's slow and out of date regex ever again
Oh look, this one isn't installed on practically every Linux machine in existence
For now 😎
You know that sed
does more than s///g
, right?
Someone even wrote a version of dc
(the arbitrary precision RPN d
esktop c
alculator) 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.
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.