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.
You know that
sed
does more thans///g
, right?Someone even wrote a version of
dc
(the arbitrary precision RPNd
esktopc
alculator) with it. They were clearly insane of course, but it proves thatsed
is more than just find and replace.Honourable mention to
awk
’ssub()
andgsub()
that, at least for basic find/replace, do the same thing.awk
is often surprisingly quick.