[macosx-unix] Re: mac serial number...

George Georgalis george at galis.org
Thu Dec 6 23:15:59 EST 2007


On Thu, Dec 06, 2007 at 11:34:48AM -0500, KLW wrote:
>> Thanks, that't the one I ended up using.
>> 
>> system_profiler SPHardwareDataType | grep Serial
>> system_profiler SPNetworkDataType | grep -E '(Type|MAC)' | grep -Ev
>> '(DHCP|PPP|Fire| 00:1d:4f)'
>> 
>> pretty hacky but it got me what I needed today.
>> 
>> // George
>
>You say hacky like it's a bad thing :-)
>
>Kristofer


well, let's just say I wouldn't trust the results
without a sanity check... an xml parser would have
been better and too late ;)

// George


-- 
George Georgalis, information system scientist <IXOYE><


More information about the macosx-unix mailing list