Multiple File Search and Replace text

Hello, everyone,

Sorry for the noob question, but does anyone know if I can use the glitch terminal to search and replace a word inside all the files of my project in Glitch?

1 Like

you should be able to use sed
e.g. sed -i s/search/replace/g *

edit: looks like the answer might be a bit more complicated if you want to recurse into directories. the linked stackoverflow page has plenty of good answers by the looks of it.

2 Likes

Hey! It worked perfectly, it even replaced the words in .hmtl files that were inside other folders. Perfect, thanks!

1 Like