Linux Find and Replace in All Files
Finding and replacing a single string of text in all the files in a single linux directory is easy. Linux has a magical ‘sed’ command which is very powerful. To find and replace all instances of a string with another string in all files type use the sed command: sed -i — ‘s/foo/bar/g’ * Typing…