Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Created August 7, 2013 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjluoma/6171647 to your computer and use it in GitHub Desktop.
Save tjluoma/6171647 to your computer and use it in GitHub Desktop.
#!/bin/zsh -f
noglob curl -s http://support-sp.apple.com/sp/product?cc=`system_profiler SPHardwareDataType |\
awk '/Serial/ {print $4}' |\
cut -c 9-` |\
sed 's|.*<configCode>\(.*\)</configCode>.*|\1|'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment