Improved tips and tricks

This commit is contained in:
Mike Farah
2021-12-05 11:12:09 +11:00
parent 8b04d972f3
commit b4db4496d5
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ The Sort Keys operator sorts maps by their keys (based on their string value). T
Sort is particularly useful for diffing two different yaml documents:
```bash
yq eval -i 'sortKeys(..)' file1.yml
yq eval -i 'sortKeys(..)' file2.yml
yq eval -i -P 'sort_keys(..)' file1.yml
yq eval -i -P 'sort_keys(..)' file2.yml
diff file1.yml file2.yml
```