4 ms·
$ find ./ -type f -exec sed -i 's/ugly/beautiful/g' {} \; vs $ replace 'ugly' 'beautiful' . -r I can definitely see the value here
by ollysb 14y ago
$ find ./ -type f -exec sed -i 's/ugly/beautiful/g' {} \;
vs
$ replace 'ugly' 'beautiful' . -r
I can definitely see the value here
- jussij 14y agoOne of the approaches has been used by tens of thousands of users over decades and the other by a handful over a few months. I know which approach I would choose.
- scarmig 14y agoI'm sure many people who have had to put up with the atrocity of sed over decades would love this tool... the author obviously knows about sed and found it lacking. Regardless, though, it's a tool she found useful, even if you personally don't. So what? The appropriate response is "Oh cool, I try to use sed. It has arcane syntax and portability issues, but it's a lowest common denominator that I can expect to find on all the systems I work on."