Skip to content

Instantly share code, notes, and snippets.

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 stevewood-tx/919c5d2d10eba4f306e57862f47a84f1 to your computer and use it in GitHub Desktop.
Save stevewood-tx/919c5d2d10eba4f306e57862f47a84f1 to your computer and use it in GitHub Desktop.
Get Serial Number
serial=$(system_profiler SPHardwareDataType | awk '/Serial\ Number\ \(system\)/ {print $NF}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment