Created
April 24, 2020 16:22
-
-
Save nathansgreen/a7281dcd3d54c913c485a969217700c5 to your computer and use it in GitHub Desktop.
Find iPhone device UUID/UDID
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 sh | |
| system_profiler SPUSBDataType 2>/dev/null \ | |
| | sed -n '/iPhone/,/Serial/p' \ | |
| | grep "Serial Number:" \ | |
| | awk -F ": " '{print substr($2,1,8)"-"substr($2,9,24)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment