Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

How to grep a next line json file

$
0
0

I have this multiple json file containing below and i want to capture png with enabled:true status.

"png": {"enabled": true,"status": false  },"jpeg": {"enabled": false,"status": false  },

Tried this but it only displays enabled: true. i want to display the code block name PNG as well.

grep -Er '"enabled:"\s*true


Viewing all articles
Browse latest Browse all 2930

Trending Articles