I'm working on a shell script and need to be able to pull the OS version and the version of Safari in order to do various things...
I can get Safari's version number from the
/Applications/Safari.app/Contents/version.plist file and with some creative sed should be able to finagle just the version number.
For the OS version, using will get me close enough to manipulate:
system_profiler SPSoftwareDataType |grep "System Version"
But I was curious if there was a more obvious and simpler way to do this from the command line.
Thanks!
I can get Safari's version number from the
/Applications/Safari.app/Contents/version.plist file and with some creative sed should be able to finagle just the version number.
For the OS version, using will get me close enough to manipulate:
system_profiler SPSoftwareDataType |grep "System Version"
But I was curious if there was a more obvious and simpler way to do this from the command line.
Thanks!