Created
January 26, 2015 04:52
-
-
Save aragaer/7c95722f81da04768d48 to your computer and use it in GitHub Desktop.
Getting names of chrome applications
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
# assuming current directory is Extensions | |
find -name manifest.json -exec grep '"name"' {} + | awk -vFS='/|"' '!/__/{print $2, $7}' | |
find -name manifest.json -exec grep '"name"' {} + | awk -vFS='/|"' '/__/{print $2, $7}' | sed 's/__MSG_//; s/__//' | sort -u -k1 | while read app var; do echo -n $app; sed -n "/$var/I, /}/ p" $app/*/_locales/en*/messages.json | grep -m1 message | cut -d ':' -f2; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment