Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'phone.sh suggestion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
phone.sh suggestion
Authored by: ctierney on Aug 29, '08 06:59:46AM
That is a lot quicker! You can make it even faster by quitting awk when you find the serial number. On my mac ioreg -c 'IOPlatformExpertDevice' prints 407 lines of text, and the serial number is at the top in line 11 (profiling with time utility):
time ioreg -c 'IOPlatformExpertDevice' | awk -F\" '/IOPlatformSerialNumber/ {print $4; exit}'


[ Reply to This | # ]