yq/pkg/yqlib/doc/headers/File Operators.md

5 lines
223 B
Markdown
Raw Normal View History

2020-11-20 11:57:32 +00:00
The file operator is used to filter based on filename. This is most often used with merge when needing to merge specific files together.
```bash
yq eval 'filename == "file1.yaml" * fileIndex == 0' file1.yaml file2.yaml
```