Replace substrings found in files
There are times when you need to find some specific substring in files and replace them with something else. Let’s say, you want to find all occurrences of substring “foo” and replace them with “bar” in all java files under current directory. Here’s how you can do it on Linux (cd to your target directory…