mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-13 03:45:37 +00:00
Added STDIN example to the top
This commit is contained in:
parent
43e40a6dda
commit
b68e6adce9
@ -12,7 +12,8 @@ yq is written in go - so you can download a dependency free binary for your plat
|
|||||||
Read a value:
|
Read a value:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yq e '.a.b[0].c' file.yaml
|
# use '-' as the filename to read from STDIN
|
||||||
|
cat file.yaml | yq e '.a.b[0].c' -
|
||||||
```
|
```
|
||||||
|
|
||||||
Update a yaml file, inplace
|
Update a yaml file, inplace
|
||||||
|
Loading…
Reference in New Issue
Block a user