simon / yq

Last active 1 month ago

simon revised this gist 1 month ago · b0bbb61

1 file changed, 13 insertions

yq.md (file created)
@@ -0,0 +1,13 @@
1 + # yq
2 +
3 + * Render (explode) yaml file using anchors
4 +
5 + ```
6 + yq 'explode(.)' < inputfile.yaml
7 + ```
8 +
9 + * Select a value from a file containing multiple yaml documents
10 +
11 + ```
12 + cat somefile.yaml | yq -N '.data.values | select(. != null)'
13 + ```