''sed'' is a text processing thingy that is very sophisticated. [[https://unix.stackexchange.com/questions/112023/how-can-i-replace-a-string-in-a-files/112024#112024|Here]] is a useful stackexchange thread that shows how to use ''sed'' to perform a "search an replace" across groups of files.