From e6ad8af331fe96652be053ccdd6f5f6f40138153 Mon Sep 17 00:00:00 2001 From: Stella L Date: Thu, 14 Mar 2024 15:54:50 -0300 Subject: [PATCH] doc: minor typo fix on example --- usage/tips-and-tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usage/tips-and-tricks.md b/usage/tips-and-tricks.md index 21c17e7d..b9e538d5 100644 --- a/usage/tips-and-tricks.md +++ b/usage/tips-and-tricks.md @@ -172,7 +172,7 @@ yq '.apple' <(curl -s https://somewhere/data1.yaml) <(cat file.yml) The most important thing to remember to do is to have brackets around the LHS expression - otherwise what `yq` will do is first filter by the selection, and then, separately, update the filtered result and return that subset. ``` -yq '(.foo.bar[] | select(name == "fred) | .apple) = "cool"' +yq '(.foo.bar[] | select(.name == "fred") | .apple) = "cool"' ``` ## Combining multiple files into one