Find files containing multiple documents #2430
Unanswered
planeiii-te
asked this question in
Q&A
Replies: 1 comment
-
That will return an error if the second document doesn't exist (which means there's only one document). Use that with something like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried several things like
select(document_index > 1)
or([.] | length) > 1
, but I haven't been able to crack this one.I want to run
yq "$expression" **/*.yaml
and have it return a list of files that contain multiple documents, but I cannot figure out which expression to use. Any help would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions