Created
May 23, 2016 20:28
-
-
Save matthewbodaly/09adb777745e05311ff6a268e9aa077d to your computer and use it in GitHub Desktop.
pulled from slack. its an idea.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response=$(curl -H "Accept: application/xml" $jssURL/JSSResource/computerextensionattributes/name/Software%20Status --user $userPass) | |
| |
choices=$(echo $response | /usr/bin/xpath "//popup_choices/choice/text()" ) | |
| |
removeChoices=$(echo $choices | /usr/bin/awk -F '<choice>|</choice>' '{print $2}') | |
| |
echo | |
echo $removeChoices |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://jamfnation.jamfsoftware.com/discussion.html?id=7052#responseChild66604