Multi-Language Systems Administration & Scripting

Job ID: 37550652

Budget: $30 – $250 CAD

I am in need of an adept professional fluent in Bash, Python or Go programming languages. The ideal person will have a scrupulous understanding of these languages and hands-on experience using them.

Summary:
- I have bunch of yaml files which contain key/value pairs, I would like to ONLY extract the keys that have certain values given through an array as input and copy these key/values to a new yaml file.

Key Notes:
- You can choose between bash, python or GO to achieve the result.
- Extracted key/value pairs should be copied over to the new file in the same exact order as original file.
- Extracted key/values should maintain the same exact nested structure as in the original file.
- Some keys might have the value wrapped in " or ', in that case the value format should exactly match the original file.
- Some keys might have the value defined in a list or a map, again this should be copied exactly as the original file.

Basically once a matched key/value is matched , extracted and copied to the new file all indentation, format ,structure MUST exactly match the original file.

I have included an example expected result file.
Related categories: Python Linux Golang Bash Scripting Bash