Created
April 16, 2020 03:49
-
-
Save stevewood-tx/919c5d2d10eba4f306e57862f47a84f1 to your computer and use it in GitHub Desktop.
Get Serial Number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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