I have below yaml file and I am trying to get all key value pairs if abc string is present in values.
a: abcsdf
b: hyuabc
c: iopabc
d: mnhbvgc
Expected output:
a: abcsdf
b: hyuabc
c: iopabc
My Attempt:
yq eval '.[] | select(. == "*abc*") test.yaml