I am looking for sample sensor script which can give the information of Mac OS edition like Mac OS Big Sur.
I could find scripts for OS version but not the exact OS edition. If someone could help me that would be appreciated !!
Hi,
I have received similar requests from my customers in the past and achieved them with this sensor script.
------------
#!/bin/bash
productv = $(/usr/bin/sw_vers -productVersion)
echo $productv
------------
The output looks like this:
11.6.1
Thanks for your response.
Yeah, I got this one to get the version number. But i am looking for something which can give the OS name like Mac Big Sur Mac Catalina