I have an input file "test.txt" as below -
host = abc.com host = xyz.com
db-host = abc.com db-host = xyz.com
In each line, the value before space is the old value which needs to be replaced by the new value after space recursively in a folder named "test"
"sed" replaces the strings on the fly in 100s of files.
Is there a trick or an alternative way by which I can get a report of the files changed like the absolute path of the file & the exact lines that got changed?
PS - I understand that sed or stream editors don't support this functionality out of the box. I don't want to use versioning as it will be an overkill for this task.