skip to Main Content

Json – Update fields from string in JQ

I have a bash $string containing the values: abc,def and a file.json looking like this: [ { "loc": "51.12345, 12.12345", "city": "CityName1" }, { "loc": "65.12345, 15.12345", "city": "CityName2" } ] I'm trying to update the city field with the…

VIEW QUESTION
Back To Top
Search