Skip to content

Instantly share code, notes, and snippets.

@l-ray
Created February 21, 2014 17:32
Show Gist options
  • Save l-ray/9138961 to your computer and use it in GitHub Desktop.
Save l-ray/9138961 to your computer and use it in GitHub Desktop.
Bash command to get a list of all used classes in css-files
find . -name "*.css" -print | xargs grep -o '\.[a-zA-Z]*' | sed 's/^[\.\/_a-zA-Z]*:\.\([a-zA-Z]*\)$/\1/' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment