Created
December 20, 2008 18:08
-
-
Save jcf/38368 to your computer and use it in GitHub Desktop.
Get the ARDAgent version via version.plist
This file contains hidden or 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
cat /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/version.plist | awk '/CFBundleVersion/{getline;gsub(/[<string>|<\/string>]/,\"\");gsub(/^[ \t]+|[ \t]+$/,\"\");print}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recommend using this instead, less yucky grep stuff
/usr/bin/defaults read /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/version.plist CFBundleVersion