Added STDIN example to the top

This commit is contained in:
Mike Farah 2021-09-17 08:38:10 +10:00
parent b68e6adce9
commit 282d047dc2
1 changed files with 2 additions and 1 deletions

View File

@ -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' -
```