Presuming there is a folder with the name "my-folder" which contains 100 files. If we want to replace (not in the filename, but in actual files) in all 100 files the string "originalString" with "replacedString" what command should do the job?
Tried:
grep -rl matchstring ~/my-folder | xargs sed -i 's/originalString/replacedString/g'
find ~/my-folder -type f -exec sed -i 's/originalString/replacedString/g' {} \;
I've also read this on stackoverflow.
None of these work for me. I am spelling something wrong? Btw I am on linux.