Created
March 3, 2017 01:13
-
-
Save johan/7f196da07fee22b08d6b9d56c1aed573 to your computer and use it in GitHub Desktop.
mac-specs
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
#! /bin/sh | |
# runs on any mac, gives its apple specs | |
curl -is https://support.apple.com/en-us/HT201300 \ | |
| grep -B 1 $( system_profiler SPHardwareDataType -detailLevel mini \ | |
| awk '/Model Identifier/ { print $3 }' \ | |
) \ | |
| egrep -o '<a href=.*</a>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment