I tried sw_vers but it only prints the information to the terminal. I cannot use it, as I have to store it in a variable and then compare.
Based on version I have to move files to appropriate location in file system.
What's the correct way to achieve this?
VAR=`ls`runs thelscommand and assignsVARto the output of it.