Instead of using UDF -> "insertline ()" which replaces the whole line, it can search for a specific word within a text file and replace it with another word or return the line number where the text was found?

I need this information to be able to read 30 files, where the text I want replace is in different lines.

Example:

File1: Text -> "SourcePath" in line 5
File2: Text -> "SourcePath" in line 8
File3: Text -> "SourcePath" in line 6
File4: Text -> "SourcePath" in line 3

These files are configuration of a server
_________________________