12 Aug

Replace a String in Multiple Files in Linux Using Grep and Sed

Example

This will search for the string ‘old-string’ in all files relative to the current directory and replace ‘old-string’ with ‘new-string’ for each occurrence of the string in each file.