💾 Archived View for freeshell.de › tldr › yq.gmi captured on 2023-06-16 at 20:31:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

yq

A lightweight and portable command-line YAML processor.

More information.

yq eval {path/to/file.yaml}
yq read {path/to/file.yaml} --colors
yq eval '.[0]' {path/to/file.yaml}
yq read {path/to/file.yaml} '[0]'
yq eval '.{key} = "{value}"' --inplace {path/to/file.yaml}
yq write --inplace {path/to/file.yaml} '{key}' '{value}'
yq eval-all 'select(filename == "{path/to/file1.yaml}") * select(filename == "{path/to/file2.yaml}")' {path/to/file1.yaml} {path/to/file2.yaml}
yq merge {path/to/file1.yaml} {path/to/file2.yaml} --colors
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY