Help with finding and replacing a specific text line in all files in a specific folder?

So as the title says, I'm trying to find a specific text line in ALL files (cfg) in a folder and replace with another text line. Is this possible? Thanks in advance.
Solution:
i'm a fan of grep -rnw . -e foo to find all files with the text and manually changing the files with an editor to avoid oopsies
Jump to solution
3 Replies
Kasher_CS
Kasher_CS5mo ago
Bash scripting, a for loop over a sed command
Solution
oraro
oraro5mo ago
i'm a fan of grep -rnw . -e foo to find all files with the text and manually changing the files with an editor to avoid oopsies
Bacchus
BacchusOP5mo ago
Gotcha! Thanks guys!
Want results from more Discord servers?
Add your server