mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +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:
|
||||
|
||||
```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' -
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user