Skip to content

Instantly share code, notes, and snippets.

@cicloid
Created July 9, 2012 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cicloid/3074088 to your computer and use it in GitHub Desktop.
Save cicloid/3074088 to your computer and use it in GitHub Desktop.
find . -name '*ipa' -exec metaipa.sh {} \;
#!/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