I am sharing this script which I initially created to learn about DAG nodes inside Maya.
The script makes it possible to change some specific file nodes inside Maya by using a string search with few limitations which I mentioned in the description section of my post
Besides this it has an option to update all file nodes.
Link to the script is mentioned below:
The same could'd been done in Python (which I realized later), however my skills regarding the same language is quite limited.