mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-15 07:53:35 +08:00
Added STDIN example to the top
This commit is contained in:
@@ -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' -
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user