Search and Replace of string in a yaml file

Pradeep Patra smilesonisamal at gmail.com
Sat Mar 23 08:00:40 EDT 2019


Hi all,

I have several yaml files in a directory around 100s. I have some values
and my script should search a string(reading from the JSON file)  from the
series of yaml files and run some validation like the key of the file that
is updated  in the yaml file and run some basic validation tests like data
integrity of the replaced string with the source string read from JSON. Can
anyone suggest some reliable and efficient method to achieve this and
appreciate some examples for the same?

Regards
Pradeep



More information about the Python-list mailing list