Created
March 4, 2019 16:19
-
-
Save zushane/70e8004f30fe9ed67403eb569979b1f6 to your computer and use it in GitHub Desktop.
Use ioreg to print out a macOS 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
# From: https://apple.stackexchange.com/a/40244 | |
ioreg -c IOPlatformExpertDevice -d 2 |awk '/IOPlatformSerialNumber/ {print $3}' |sed s/\"//g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment