From 282d047dc226ea2f41983c1f55ea6dea15513c2b Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Fri, 17 Sep 2021 08:38:10 +1000 Subject: [PATCH] Added STDIN example to the top --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c4a07ee..7ba9ca43 100644 --- a/README.md +++ b/README.md @@ -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' - ```