Skip to content

Instantly share code, notes, and snippets.

@sebnash
Created October 1, 2012 11:05
Show Gist options
  • Save sebnash/3810976 to your computer and use it in GitHub Desktop.
Save sebnash/3810976 to your computer and use it in GitHub Desktop.
One-liner: OS X serial number
system_profiler SPHardwareDataType | awk -F": " '/Serial/{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment