2 ms·
Should you wish to jq can search too without the need of piping through a shell: jq 'keys | map(select(test("ependencies")))' file.json map(select()) is a p
by xorcist 5y ago
Should you wish to jq can search too without the need of piping through a shell:
jq 'keys | map(select(test("ependencies")))' file.json
map(select()) is a pretty useful construct to loop over stuff and pick out the interesting parts.