Skip to content

Instantly share code, notes, and snippets.

@andersevenrud
Last active April 9, 2016 20:00
Show Gist options
  • Save andersevenrud/793aa46063652afbc6eadb4dfa848d5f to your computer and use it in GitHub Desktop.
Save andersevenrud/793aa46063652afbc6eadb4dfa848d5f to your computer and use it in GitHub Desktop.
osjs-find-used.icons.sh
#!/bin/bash
#
# First, run "grunt"
#
# Then `./osjs-find-used.icons.sh | sort | uniq` to get a list of all icons used
#
GREPPED=$(grep -RHIi "\.png" dist/ | egrep -o '\w+\/[_A-Za-z0-9\-]+\.png')
for g in $GREPPED; do
if [ -f "src/client/themes/icons/default/16x16/${g}" ]; then
echo $g
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment