skip to Main Content

Can 2 jq commands be combined to extract specific values from JSON data?

I want to combine below mentioned 2 jq commands to work together in a single jq command. Command 1: jq -r '.objects[] | "(.name),(.uid),(.type),(."ipv4-address"),(."nat-settings"."ipv4-address"),(."nat-settings"."ipv6-address"),(."nat-settings"."install-on"),(."nat-settings".method)"' Command 2: jq -r '.objects[].groups[].name' I'm able to get output of commands when executed separately but…

VIEW QUESTION
Back To Top
Search