From 7598f73204a219cebd7088e5013961ba5d9de53b Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sun, 5 Dec 2021 11:14:06 +1100 Subject: [PATCH] shorten filename in 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 3df31027..f9eb4e37 100644 --- a/usage/tips-and-tricks.md +++ b/usage/tips-and-tricks.md @@ -95,7 +95,7 @@ yq e -n '.someNew="content"' > newfile.yml The best way to run a diff is to use `yq` to normalise the yaml files and then just use diff. Here is a simple example of using pretty print `-P` to normalise the styling and running diff: ``` -diff <(yq e -P 'sort_keys(..)' examples/data1.yaml) <(yq e -P 'sort_keys(..)' examples/data2.yaml) +diff <(yq e -P 'sort_keys(..)' file1.yaml) <(yq e -P 'sort_keys(..)' file2.yaml) ``` This way you can use the full power of `diff` and normalise the yaml files as you like.