yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
12.36k
stars
602
forks
source link
extract a map of filename: content to multiple files with key as name and content as content #2032
Closed
dtcopcp closed 5 months ago
This feels like it might be trivial, apologies if it is.
If I can filter down to a map in the form:
how can I split this into two files:
filename1.json
andfilename2.json
with only the json as content?Thanks