Skip to content

Instantly share code, notes, and snippets.

@aragaer
Created January 26, 2015 04:52
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 aragaer/7c95722f81da04768d48 to your computer and use it in GitHub Desktop.
Save aragaer/7c95722f81da04768d48 to your computer and use it in GitHub Desktop.
Getting names of chrome applications
# 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