mikefarah / yq

yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor

Home Page:https://mikefarah.gitbook.io/yq/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extract a map of filename: content to multiple files with key as name and content as content

dtcopcp opened this issue · comments

This feels like it might be trivial, apologies if it is.

If I can filter down to a map in the form:

filename1.json: {"some":"json"}
filename2.json: {"some":"json"}

how can I split this into two files: filename1.json and filename2.json with only the json as content?

Thanks