On Sun, Oct 14, 2007 at 10:45:30AM -0700, Edward Moy wrote:

> % perl -e 'chomp($vers = `sw_vers -productVersion`); print "$vers\n"'
> That will get you either 10.x or 10.x.y.  You just need to strip off  
> the .y if it is there.

Perfect, thanks!

-- 
David Cantrell | Nth greatest programmer in the world

"The whole aim of practical politics is to keep the populace alarmed
 (and hence clamorous to be led to safety) by menacing it with an
 endless series of hobgoblins, all of them imaginary"  -- H. L. Mencken

Reply via email to