Given the following json data and "a" as a partially matching search word, how can I get an array ["a", "b", "c"], ["abc", "e", "f"] containing the partially matching search word "a" using jq?
[
["a", "b", "c"],
["abc", "e", "f"],
["g", "h", "i"]
]
jq '. [] | select(index("a"))' gets only ["a", "b", "c"] with exact match, but I want to get ["abc", "e", "f"] as well since "abc" contains "a".