mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-13 11:55:38 +00:00
Added STDIN example to the top
This commit is contained in:
parent
b68e6adce9
commit
282d047dc2
@ -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
|
||||||
# use '-' as the filename to read from STDIN
|
yq e '.a.b[0].c' file.yaml
|
||||||
|
# alternatively, use '-' as the filename to read from STDIN
|
||||||
cat file.yaml | yq e '.a.b[0].c' -
|
cat file.yaml | yq e '.a.b[0].c' -
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user