Skip to content

Instantly share code, notes, and snippets.

@shazron
Created April 3, 2014 23:15
Show Gist options
  • Save shazron/9964741 to your computer and use it in GitHub Desktop.
Save shazron/9964741 to your computer and use it in GitHub Desktop.
List connected iOS devices
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment