Hello there, Im a bit rusty so any help would be appreciated.
Im writing a script in jamf pro which uses the computers-inventory API to grab info on a specific computer. So far I have this
computerID=$(sudo jamf recon | grep computer_id | cut -f2 -d '>' | cut -f1 -d'<')
computerInventory=$(curl -s "${apiURL}/api/v3/computers-inventory/${computerID}" -H "Accept: application/json" -H "Authorization: Bearer ${apiBearerToken}" -X GET)
#EXTRACT managementID out of computerInventoryI have no idea how to extract the managementID field out of computerInventory. Im trying to avoid jq cause I dont want to deploy that to all the macs in the fleet.
Any help would be amazing.
