Created
March 20, 2020 17:40
-
-
Save haakonstorm/93b4724ca41d64f4619576dbc20ad116 to your computer and use it in GitHub Desktop.
Oneliner to get your Apple Model Identifier from the shell
This file contains hidden or 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
ioreg -l | awk '/product-name/ { split($0, line, "\""); printf("%s\n", line[4]); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment