Created
August 21, 2015 01:59
-
-
Save lorentzca/588cd7c4e52091fb3711 to your computer and use it in GitHub Desktop.
what is my mac model number?
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
#!/usr/bin/env ruby | |
mode_identifier = `system_profiler SPHardwareDataType | awk '/Model Identifier:/ {print $3}'` | |
`open http://www.everymac.com/ultimate-mac-lookup/?search_keywords=#{mode_identifier}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
./what_is_my_mac_model_number.rb