Post History
With yq: $ yq --output-format yaml . file.json > file.yaml . is a filter which is applied to the data, but since . just stands for the document root, this means that the data is passed throu...
Answer
#2: Post edited
- With [`yq`](https://mikefarah.gitbook.io/yq):
- ```shell
$ yq --yaml-output . file.json > file.yaml- ```
- `.` is a filter which is applied to the data, but since `.` just stands for the document root, this means that the data is passed through without modification.
`yq` is capable of rich document manipulation, but here we are doing just the most simple of operations.
- With [`yq`](https://mikefarah.gitbook.io/yq):
- ```shell
- $ yq --output-format yaml . file.json > file.yaml
- ```
- `.` is a filter which is applied to the data, but since `.` just stands for the document root, this means that the data is passed through without modification.
- `yq` is capable of rich document manipulation, but here we are doing just the most simple of operations.
- Note that this `yq` here is implemented in go. There's also a python project with the same name.
#1: Initial revision
With [`yq`](https://mikefarah.gitbook.io/yq): ```shell $ yq --yaml-output . file.json > file.yaml ``` `.` is a filter which is applied to the data, but since `.` just stands for the document root, this means that the data is passed through without modification. `yq` is capable of rich document manipulation, but here we are doing just the most simple of operations.