How to detect Darwin version?

command-line
darwin
mac
unix

(Dmitry Fedyuk) #1
system_profiler SPSoftwareDataType

02