Skip to content

Instantly share code, notes, and snippets.

@matthewbodaly
Created May 23, 2016 20:28
Show Gist options
  • Save matthewbodaly/09adb777745e05311ff6a268e9aa077d to your computer and use it in GitHub Desktop.
Save matthewbodaly/09adb777745e05311ff6a268e9aa077d to your computer and use it in GitHub Desktop.
pulled from slack. its an idea.
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