I have the following data inside a plist
<dict> <key>AdminUnit</key> <dict> <key>Date</key> <date>2013-10-12T06:07:27Z</date> <key>Value</key> <string>GLX_DUD</string> </dict>
I'm interested in extracting the <string>GLX_DUD</string> to build a smart group from that string to create an extension attribute.
Here's what I've tried which is not working. Any help would be appreciated.
Thank you,
#!/bin/sh
BigFixUnit=$( defaults read /Library/Preferences/com.bigfix.BESAgent.plist AdminUnit )
echo "<result>$Department</result>"
