Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature req: partial splats on key names #218

Closed
nergdron opened this issue Mar 11, 2019 · 1 comment
Closed

feature req: partial splats on key names #218

nergdron opened this issue Mar 11, 2019 · 1 comment

Comments

@nergdron
Copy link

I've got a yaml file full of host details, structured like:

hostname:
  ip: some.ip.add.ress
  other: keys
  with: data

I wanted to get all the IPs for hosts matching a certain pattern, but yq doesn't seem to support that:

# yq r hosts.yml 'some-prefix*.ip'
null
# yq r hosts.yml 'some-prefix-rest-of-single-hostname.ip'
a.valid.ip.address
@mikefarah
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants