title: Shell Script to find the Operating System of the machine
body: <p>How to find the operating system using bash script? I found this answer: <a href="https://stackoverflow.com/questions/394230/detect-the-os-from-a-bash-script">Detect the OS from a Bash script</a>. It is not clear it would work on Mac OS X.</p>
  
  <p>I would like to find it on Mac OS X vs different linux OS's.</p>