Created
January 8, 2013 09:08
-
-
Save alex-cellcity/4482378 to your computer and use it in GitHub Desktop.
search udid inside .ipa file
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
#!/bin/bash | |
if [ $# == 1 ] | |
then | |
echo "UDIDs inside IPA: $1" | |
unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-z0-9]\{40\}" | |
elif [ $# == 2 ] | |
then | |
echo "Searching UDID: '$2' inside: '$1'" | |
unzip -p "$1" Payload/\*.app/embedded.mobileprovision | grep -a "[a-z0-9]\{40\}" | tr -d ' ' | grep "$2" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment