Skip to content

Instantly share code, notes, and snippets.

@nathansgreen
Created April 24, 2020 16:22
Show Gist options
  • Select an option

  • Save nathansgreen/a7281dcd3d54c913c485a969217700c5 to your computer and use it in GitHub Desktop.

Select an option

Save nathansgreen/a7281dcd3d54c913c485a969217700c5 to your computer and use it in GitHub Desktop.
Find iPhone device UUID/UDID
#!/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