Replace string in many files

In Bash, just use the following loop: