Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
If you're looking for something as nice and easy as the "Find/Replace in all files" features in most IDEs, nothing like it exists as far as I can tell.
find . -exec sed -i 's/foo/bar/g' {} + is about as good as it gets -
stisch48146y@franga2000 yeah that's similar to what I mean... or like, looping and running xargs. I recently discovered ripgrep, fzf, and httpie which are amazing replacements for the hard ways I had done such things.
So I was thinking, "what other mundane headaches could I replace?" -
@stisch me too, along with gcp instead of cp, exa instead of ls and grc for making many old commands nice and colorful.
-
@illusion466 sed is a GNU tool, so he's either using Linux or cygwin on Windows. Probably Linux.
-
I've got a simple bash script for this using grep and sed. When I get back to my laptop I'll ping you on here
-
YADU13966yIf the sed is too complicated to type every time you could probably wrap it / soemthing similar in a shell script
Is there a better CLI tool for finding/replacing stuff in files recursively? Other than like..
sed -i '' '/some/nonsense/g'
question