I have a folder full of .yaml files. in each yaml file i have a url arg among other things. im just trying to get a spreadsheet that has the name of the file in the first column and have the value of the url arg in the second column. is there a simple console command that can do this?
in the yaml file it looks essentially like this
args:
- {arg: file_name, value: "testfile"}
- {arg: url, value: "fakesite.com"}
the goal is to have a spreadsheet were those two values are listed side by side for each yaml file in the folder.
yaml2csv my_file.yml
? Unlessyou make it a standalone command you would end up usingawk
,sed
and co...