In linux, what's a good way to find all occurrences of "string1" in files under a directory and replace them with "string2"?
Fairly basic. Use sed with file globbing. Unless you mean every file in directory and subdirectories?
Edit: In the case of literally everything under the directory