mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Added set path example
This commit is contained in:
parent
2bab6385bd
commit
f64376da9b
@ -91,6 +91,11 @@ yq ea '(.. lineComment |= filename + ":" + line) | select(fi==0) * select(fi==1
|
||||
|
||||
See [here](https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-arrays-of-objects-together-matching-on-a-key) for a working example.
|
||||
|
||||
|
||||
## Deeply prune a tree
|
||||
|
||||
See [here](https://mikefarah.gitbook.io/yq/operators/path#set-path-to-extract-prune-deep-paths) for a working example.
|
||||
|
||||
## Creating a new file / working with blank documents
|
||||
|
||||
To create a new `yaml` file simply:
|
||||
|
Loading…
Reference in New Issue
Block a user