export LC_ALL=C
system_profiler SPSoftwareDataType |\
 sed -n '/System Version/s#^[^.0-9]*\([.0-9]*\).*#mac\1#p'
