4 ms·
Probably my favorite MacOS one liner (which is slightly different on Linux) is recursive search and replace) find . -name "*.tsx" -exec sed -i "" -e "s/SomeVa
by ogre_codes 6y ago
Probably my favorite MacOS one liner (which is slightly different on Linux) is recursive search and replace)
find . -name "*.tsx" -exec sed -i "" -e "s/SomeVariable/ReplacementVariable/g" {} +
Use this so much with refactoring.
Also... wish HN supported at least a bit of markdown.
- rovr138 6y ago2 spaces is a code block - https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc
- ogre_codes 6y agoThanks It's like the bad-old days where every site had it's own markup though