I have a text file shown below and I am trying to get the OS value of server XYZ
[
{
"Identity": {
"Name": "BigFix Internal Relay"
},
"Server": {
"Name": "ABC"
},
"OS": "Win 2022"
},
{
"Identity": {
"Name": "BigFix DMZ Relay"
},
"Server": {
"Name": "XYZ"
},
"OS": "Win 2019"
}
]
I tried using below relevance but it is also taking the information of the other server. I know there needs more modification on this but can you check what would be the efficient way to achieve it?
lines whose ((it contains "XYZ") or (it contains "OS") of file "c:\temp\test.txt"
Thanks.
