How can I do this in Python 2.7:
I have one file named e.g. parameter-values.txt which contains 10 or more parameters with neccessary values like this:
param1=hello,dd
param2=test
param3=4g
etc..
and also I have a lot of files where is this variables defined (but not all params in every file).
File1:
#!/bin/bash
param1="&*"
param3="&*"
another bash commands
So, my question is: How can I recursively in loop find files which contains this parameters/variables and substitute parameters in these files with my own in the parameters file.
Thank for every relevant answer.