Created
July 9, 2012 03:34
-
-
Save cicloid/3074088 to your computer and use it in GitHub Desktop.
This file contains 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
find . -name '*ipa' -exec metaipa.sh {} \; |
This file contains 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 | |
#unzip the meta file inside the ipa to the tmp directory | |
unzip -q "$1" iTunesMetadata.plist -d /tmp/ | |
#chmod the meta file (as sometimes its not readable) | |
chmod 777 /tmp/iTunesMetadata.plist | |
#run the defaults command to extract the data and grep it for some keys | |
a=`defaults read /tmp/iTunesMetadata | grep -i AppleID | grep -o '".*"'` | |
b=`defaults read /tmp/iTunesMetadata | grep -i itemName | grep -o '".*"'` | |
#display the data tab separated - AppleID, Product Name, Filename | |
echo -e "$a \t $b \t $1" | |
#clean up any temp file | |
rm -f /tmp/iTunesMetadata.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment