How to detect Darwin version?

command-line
darwin
unix
mac

(Dmitry Fedyuk) #1
system_profiler SPSoftwareDataType

02